Open GoogleCodeExporter opened 8 years ago
Current TdwsUnit can only have dependencies to other TdwUnit
Original comment by zar...@gmail.com
on 31 May 2013 at 8:55
As a workaround I used TObject as the result type of the function in the
dwsUnitDescendant, so that I could use code like
var f: TFoo := getFoo as TFoo;
in the script. In dwsUnitDescendant, in getFoo's OnEval handler I use following
code to create an instance of TFoo:
Info.ResultAsVariant := Info.Vars['TFoo'].Method['Create'].Call([]).ScriptObj;
But this fails with runtime error:
Runtime Error: DataType "TFoo" not found in GetFoo [line: 71, column: 26]
The "source unit" which defines TFoo type is in the uses of the main script...
Any suggestion how to solve this?
Original comment by ain.val...@gmail.com
on 10 Jun 2013 at 8:58
Original issue reported on code.google.com by
ain.val...@gmail.com
on 29 May 2013 at 9:47