[fpc-devel] FPC-JVM: Problem with "with" in nested records

Mark Morgan Lloyd markMLl.fpc-devel at telemetry.co.uk
Wed Feb 13 12:58:06 CET 2013


Michael Schnell wrote:
> On 02/12/2013 11:58 AM, Nicola wrote:
>> t I found a problem with nested command "with".
> When reading code with nested with statements I get confused as well :-P .

Wouldn't help in the current case, but some way of setting an alias 
would be nice.

   with desc: TFingerRequest=
  TFingerRequest(LeftPane.Items[GreenBranch].Data).Description do begin
     desc.Append(Custom.Format(green_1, []));
     desc.Append(Custom.Format(green_2, []));
..

-- 
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 fpc-devel mailing list