opensubscriber
   Find in this group all groups
 
Unknown more information…

m : macpascal@listman.sonic.net 23 July 2005 • 5:46AM -0400

Re: [MacPascal] New interface problem II
by Florian Klaempfl

REPLY TO AUTHOR
 
REPLY TO GROUP




Peter N Lewis wrote:
> If FPC implements "const var", then this issue will die (except for
> minior compatibility issues with the EOLed MW Pascal).

I must admit, I don't like the const var syntax. Reasons:
- it's not necessary to determine per parameter the way how "const"
parameters are passed, it's enough to tell the compiler: let this
function/(call) look like it was generated by a MW compiler
- const var influences only the code generation and makes neither a
syntactic nor a semantic difference visible to the user so it should
exposed as little as possible to the user
- adding the const var to interface units is error prone
- it might be possible that some has a MW compiled library with an
interface unit: adding the const var is error prone, adding an ifdef'ed
{$calling mwpascal} is easy.

Did I overlook something?
_______________________________________________
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.