[Lazarus] Easiest way to "case" strings

Florian Klaempfl florian at freepascal.org
Thu Mar 26 10:10:31 CET 2009


Marco van de Voort schrieb:
>>> And string-case for my feeling belongs in neither. It is just about racking
>>> up bullet lists in language wars.
>> Well, there is another important design principle. It is sometimes called
>> "orthogonality" -- it means that existing language features can be
>> combined in any way, with as little limitation as possible.
> 
> Yes. But since this is not a simple type, but a complex type, it goes to a
> different class. If that is your argument, make sure it works for arrays, records,
> classes, interfaces and the other complex types too.

Actually, case is not defined for all types but for all ordinal types ;)



More information about the Lazarus mailing list