Hi!
Am Samstag, den 20.02.2010, 19:01 +0100 schrieb Jürgen Hestermann:
>
> > y := case Other of
> > bla : 'hello';
> > foo : 'bye';
> > baz : 'adius';
> >end;
>
> What do you gain with this?
> Doesn't look much different to
>
> case Other of
>bla : y := 'h
You are looking at the wrong example! Clearly, for variable assignment
you don't gain anything. But for a function argument you do!
Realy?
WriteLn('The value is ',(if X then 'true' else 'false'),
' at the moment.');
Well, *this* can be done much easier ;-):
-
Sent from my iPhone
On 24 Feb 2010, at 06:10, Jürgen Hestermann
wrote:
Well, *this* can be done much easier ;-):
I think an interjection at this point is required - all of this is
down to personal experience, preference and style. It is what you are
used to. Having done 10+ years