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

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Sun Mar 17 15:48:07 CET 2013


Marco van de Voort wrote:
> 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 ":" ?

Are there any reputable cases where both type and value need to be 
specified separately?

with foo: TSomeType= TSomeType(list.objects[i]) do

-- MarkMLl







More information about the fpc-pascal mailing list