On 24 Jul 2005, at 03:01, Peter N Lewis wrote:
> const: passed by value on most compilers, including MW and GPC.
> Code crashes.
I was previously told that Metrowerks passes all const records by
reference. But Adriaan now recently said this is not the case after
all...
> We can and do work around this for FPC. And FPC can instead have
> some sort of special FPC "MWPascal", but then it has the same
> problem as MW above.
No, mwpascal means "pass all const records by reference" in FPC. The
main problem in this case is with callbacks: they have to be declared
as "mwpascal" as well.
Jonas
_______________________________________________
MacPascal mailing list
MacPascal@list...
http://lists.sonic.net/mailman/listinfo/macpascal
opensubscriber is not affiliated with the authors of this message nor responsible for its content.