[fpc-pascal] some new features to delphi prisem

Marco van de Voort marcov at stack.nl
Sun Feb 21 17:36:09 CET 2010


In our previous episode, dmitry boyarintsev said:
> Does this innovation makes "case" a function?

I'd rather say an expression.
 
> procedure SomeProc(const v: string);
> 
> SomeProc (  case Other of
>                         a: 'a';
>                         b: 'b';
>                    end; );
> 
> Imho, this reduces the code readability.

Even if you are a favorite of said functionality, it should not
be added adhoc, but integrated in the language definition. (but that
would mean it is no longer Pascal).

I don't see the use either. Moreover the benefit/cost (work) is way to high
IMHO



More information about the fpc-pascal mailing list