ghkweon / dwscript

Automatically exported from code.google.com/p/dwscript
0 stars 0 forks source link

TdwsFunction overload support #456

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In the dwsComp unit, TdwsFunction has an overloaded property inherited from 
TdwsFunctionSymbol. When FOnFastEval is assigned an event handler, the 
DoGenerate methode in TdwsFunction is used, rather than that in 
TdwsFunctionSymbol, but this method does not handle the Overloaded property.

I solved this by passing the Overloaded property as an argument to CheckName:
CheckName(table, Name, Overloaded);

As well as adding the fellowing code to include the overloaded flag after the 
deprecated flag is handled:
   if Overloaded then
      Include(flags, iffOverloaded);

Original issue reported on code.google.com by frederic...@gmail.com on 26 Feb 2014 at 2:48