Adriaan van Os wrote:
[...]
To put it in a nutshell, I will be very grateful if GPC supports
{$if condition} ... {$else} ... {$endif}
It does (since a very long time, actually).
and it would be nice if
{$ifc condition} ... {$elsec} ... {$endc}
is supported also. The other items from the CodeWarrior Reference are non-essential.
It would be trivial to add those (though I guess without the restriction that only one form may be used in a source file). My main question (see below) is how useful this would be on the whole.
CBFalconer wrote:
Frank Heckenbach wrote:
I.e., we might choose to implement them for compatibility's sake. Then again, how far is GPC compatible to CW in other respects? Is it reasonable to claim (or strive for) compatibility at all?
No no no no no. If CW wants compatibility it should implement an ISO standard. One tool, one job. Please don't waste valuable time and effort on this.
I don't plan to. I asked this question in order to find out about CW's language. If it's compatible to (a subset of the union of) Standard Pascal and Borland Pascal, we might not have to add much at all to be compatible (maybe a few warnings and errors, but they're not so important I guess).
If, however, it's substantially different, I won't strive for compatibility (of course, if someone else volunteers, they can still do it).
Frank