[Lazarus] 'with' is evil, isn't it?
Sven Barth
pascaldragon at googlemail.com
Fri Aug 5 12:40:54 CEST 2011
Am 05.08.2011 12:30, schrieb Luca Olivetti:
> Al 05/08/11 12:11, En/na Max Vlasov ha escrit:
>
>> Luca shared an interesting fact, so I tried to find more information. He probably meant UCSD Pascal, as I see this is a very interesting system, mentioned also in the lazarus wiki ( http://wiki.freepascal.org/UCSD_Pascal ). I downloaded the sources of the system, but I could not find the examples of similar syntax inside many with statements... Maybe there are other sources.
>
> No, I meant TI Pascal.
> Since this is very old stuff, I didn't think I could find anything about it,
> but here is the manual (I'm not sure is the same version I used but it seems
> pretty close):
>
> http://www.bitsavers.org/pdf/ti/990/pascal/0946290-9701_TI_Pascal_UsersManual_Jan79.pdf
>
> (warning: 34MB file)
>
> On page 62 there's the definition of the with statement and it uses "="
>
> <with statement> ::= WITH<with variable list> DO<statement>
> <with variable list> ::=<with variable> {,<with variable>}
> <with variable> ::=<record variable> |<identifier> =<record variable>
The internet is a never forgiving source of information ^^
Though "=" seems a little bit like a misuse of that operator... ":="
might be a more pascalish solution.
Thank you for looking.
Regards,
Sven
More information about the Lazarus
mailing list