Alexander Klenin schrieb:

>> Can anyone say why there is no string case statement in Object Pascal?  I've
>> always wondered about this as sometimes it hard to avoid 10-20 If..then..else
>> if.... statements.
> 
> I'd say it is because nobody contributed it ;-)

There exist too many options with string comparison. In a table lookup 
the compare method can be supplied by the application, in a case 
statement this would require another syntax extension.

DoDi

_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to