DWScript
DWScript copied to clipboard
Delphi Web Script general purpose scripting engine
There is a lot of small errors during compilation under Lazarus Windows, I started to correct them but have no idea how long it'll take to correct them all so...
There's some code in dwsHashtables.pas. > procedure InitTables; > var > I, K: Char; > Temp: Integer; > begin > for I := #0 to #255 do > begin >...
[DWScriptTest.zip](https://github.com/user-attachments/files/16398598/DWScriptTest.zip) Its a test project with the bugs commented in the uDWTest.pas module. If you have any problem with compiling let me know. Ravil
Apologies if if this is a repost - I got lost I need a Delphi7 version, Version 2.1 and later have generics and other difficult stuff. Can you find me...
On Delphi 11/12 DynArraySetLength as the last parameter accepts PNativeInt so please change the local vars in the function TdwsRTTIInvoker.ValueFromIInfo to: var LLen: NativeInt; Index: NativeInt; On Linux its critical...
What happen do dwsJSON ? is it still maintained ?
Let' say I have a function which has 2 parameters. Ex: ``` // find the max value from the last period values from the range from Length - 1 -...
Hello, I add a custom function and register it to DWScript. ``` LFunc:=FdwsUnit.Functions.Add; LFunc.Name:='Add_Array'; LFunc.Overloaded := True; LFunc.OnEval:=dwsUnitAdd_Array_Eval; LFunc.ResultType:='array of Boolean'; LParam:=LFunc.Parameters.Add; ... ``` And in the dwsUnitAdd_Array_Eval function, I...
Hello. overload operator by ``` o := Self.FdwsUnit.Operators.Add; o.Operator:=ttGTR; o.Params.Add.Name:='Float'; o.Params.Add.Name:='Float'; o.ResultType:='Boolean'; o.UsesAccess:='Operators_GTR'; // Then o := Self.FdwsUnit.Operators.Add; o.Operator:=ttGTR; o.Params.Add.Name:='String'; o.Params.Add.Name:='String'; o.ResultType:='Boolean'; o.UsesAccess:='Operators_GTR'; ``` Seems will lose overload feature. When...
``` TB = class end; TA = class published function GetB:TB; end; var A: TA; B: TB; ... function TA.GetB:TB; begin Result:=B; end; ``` TA and TB are exposed classes....