CelismarRP / dwscript

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

Add overloading for properties (Delphi support it from 2006) #97

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Type

 mc = Class

  FObjectList : TObjectList;

  Function GetObjByName(Index : Integer) : TObject;
  Begin
  End;

  Function GetObjByIndex(Index : String) : TObject;
  Begin
  End; 

  Property Objects : TObjectList Read FObjectList;
  Property Objects[Index : Integer] : TObject Read GetObjByName; Default;
  Property Objects[Index : String] : TObject Read GetObjByIndex; Default;

 End;

Original issue reported on code.google.com by kazantse...@mail.ru on 29 Apr 2011 at 12:48

GoogleCodeExporter commented 9 years ago
Currently there is no overloading support in DWScript, so that would come with 
a parser overhaul. This is planned for sometime after the type system has been 
revamped (which s currently underway).

Original comment by zar...@gmail.com on 4 May 2011 at 6:37

GoogleCodeExporter commented 9 years ago

Original comment by zar...@gmail.com on 22 Feb 2012 at 7:57

GoogleCodeExporter commented 9 years ago

Original comment by zar...@gmail.com on 1 Mar 2012 at 9:42