opensubscriber
   Find in this group all groups
 
Unknown more information…

m : macpascal@listman.sonic.net 24 July 2005 • 4:15AM -0400

Re: [MacPascal] New interface problem II
by Jonas Maebe

REPLY TO AUTHOR
 
REPLY TO GROUP





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

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.