da Silva, Joe wrote:
procedure SetFoo (f : FooType); asmname 'setfoo'; procedure SetFoo (f : FooType);
[Joe da Silva]
OK, time for a silly question ... <g>
Why does the procedure header need to be given twice? (Looks weird!)
IMHO it doesn't look weird, but it looks just stupid. ;-) AFAIK, it's historical reasons (inherited from C or so).
We'll change this in the future (actually, Peter did so already for variables which had a similarly stupid syntax until some time ago, but he didn't get around to doing it for routines yet). Since it'll be an incompatible change, we'll not do it shortly before 2.1 now, though.
Frank