9 Jun
2006
9 Jun
'06
8:33 p.m.
Forwarded from marcov@stack.nl (Marco van de Voort): In gmane.comp.compilers.gpc, you wrote:
Yes, the first problem is to define a syntax. I think there might have been some suggestions before, but nothing concrete so far AFAIR. Do other dialects have something like that, if so which syntax?
Delphi syntax type tbla = procedure bla(param1,param2,param3:integer) of object; Only allowed to assign methods. (classes model) Internally such beast is a record ("TMethod") with two fields. "code" and "data". Code contains a ptr to the function, data self or nil. (the latter in case of "class" (static) methods) Assignment is simple var bla: tbla; begin bla:=xx.methodname; end;
7371
Age (days ago)
7371
Last active (days ago)
1 comments
1 participants
participants (1)
-
Frank Heckenbach