Syntactical extensions vs. pragmas everywhere

stéphane ducasse ducasse at iam.unibe.ch
Sun Aug 20 08:28:55 UTC 2006


Ok I see.
This is why in VW Pragmas are declared first.
This way this would be solved. I will look in VW to see what they do.

> Sigh. That's what my first point was all about. Once more: Assuming  
> an extension like the FFI (or Sql) how would -without the FFI or  
> Sql support loaded- the compiler even know that <cdecl: 'void puts 
> (char*)'> has *meaning*? I.e., that it is not a pragma but that it  
> needs to be interpreted by some support code that isn't even present?
>
> You, yourself were running into this problem. You didn't have the  
> FFI loaded. You tried to put in an FFI spec. (Fortunately) It  
> didn't work and raised your attention and let you to ask what is  
> happening. Now consider the situation that we would have used  
> pragma syntax and that the compiler would have silently accepted  
> that "pragma". It wouldn't have *looked* right but not *worked*  
> right. But if you would've asked even I would have no way of  
> telling why "puts() doesn't work on your machine".
>
> Cheers,
>   - Andreas
>




More information about the Squeak-dev mailing list