[Lazarus] 'with' is evil, isn't it?

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Fri Aug 5 13:16:32 CEST 2011


Alexander Klenin wrote:
> On Fri, Aug 5, 2011 at 21:51, Luca Olivetti <luca at wetron.es> wrote:
>> Al 05/08/11 12:40, En/na Sven Barth ha escrit:
>>
>>> Though "=" seems a little bit like a misuse of that operator... ":=" might be a more pascalish solution.
>> I really don't mind one way or the other, but since a bare = is used for defining constants,
>> it doesn't seem out of place for defining an alias (this is not an assignment).
>>
> 
> Unfortunately, "with a = b do" is already a valid operator in FPC,
> with different meaning.

In that case use  with const  which is similar to function declarations.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list