[fpc-pascal] a proposal about "with" syntax

Luca Olivetti luca at ventoso.org
Sun Mar 17 15:02:58 CET 2013


Al 17/03/13 13:54, En/na Marco van de Voort ha escrit:
> In our previous episode, Sven Barth said:
>>>
>>> Texas Instruments' Pascal had an extension of the with statement, IIRC
>>> it used = instead of AS
>>>
>>> With a=VeryLongNameForARecord, b=AnotherRecordWithAVeryLongName do ...
>>
>> Now THAT is really unpascalish... either ":=" or the already suggested 
>> "as"...
> 
> Since it is a pseudo variable declaration, I would assume VAR syntax and
> just use ":" ?

That would be consistent with "On E:Exception do writeln(E.message)".

Bye
-- 
Luca




More information about the fpc-pascal mailing list