Am 06.11.2015 um 20:22 schrieb Luca Olivetti:
> El 06/11/15 a les 18:10, Martin Schreiber ha escrit:
> 
>> You are joking, no? It has been discussed on fpc-pascal/fpc-devel several
>> times. An IIRC Italian community member then usually shows a syntax
>> description of a safe "with" statement from a maybe more than 20 year old
>> pascal dialect.
> 
> I don't know if that's me, but, yes, I used a variant of pascal (by
> texas instruments) that allowed to declare aliases with "with", e.g
> 
>  with a=somerecord, b=someotherrecord do
>  begin
>    a.x:=b.x;
>  end;
> 

While I think this is something were a patch would be accepted, my main
issue is that the with handling code in the compiler is somehow messy.
Not necessarily due to bad coding but simply the way how "with" works.
It is similiar to the proc. var code which is also one of the places
only very brave people look at ;)


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to