On Tue, Nov 12, 2013 at 12:45 PM, Martin Schreiber <[email protected]> wrote:
> On Tuesday 12 November 2013 14:37:41 Marcos Douglas wrote:
>> On Tue, Nov 12, 2013 at 9:25 AM, Martin Schreiber <[email protected]>
>> >
>> That is a good idea after all.
>> Pascal has the 'absolute' keyword so maybe could be:
>>
>> with rec1 absolute r do
>> r.field1:= 123
>> end;
>>
>> Maybe use 'alias' keyword
>>
>> with rec1 alias r do
>> r.field1:= 123
>> end;
>>
> or
> "
> with r: rec1 do
> r.field1:= 123
> end;
>
> with r: rec2, s: r.field1 do
> r.field1.field1:= 123; //or
> s.field1:= 123;
> end;
Always minimalistic... :)
Well, looks good for me. This is similar to "try-exception" block:
try
[code]
except
on e: Exception do
msg(e.message);
end;
Ie, the "e" variable has not been defined before.
> "
> or
> "
> with r:= rec1 do
> r.field1:= 123
> end;
>
> with r:= rec2, s:= r.field1 do
> r.field1.field1:= 123; //or
> s.field1:= 123;
> end;
> "
NO! Only if "r" was defined. But in that case I don't see any advantages.
If I can vote using your options, I vote in "with r: rec1 do" sintaxe.
Best regards,
Marcos Douglas
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk