[Lazarus] Easiest way to "case" strings
flavio.etrusco at gmail.com
Thu Mar 26 01:46:30 CET 2009
>> What problem does "for in" really solve?
> Lack of iterators.
Also, Pascal is all about readability and maintainability, so avoiding
a redundant variable declaration and attribution, and the opportunity
of people misusing and mis-reusing a counter variable is pretty worth
>> Is having 6 levels of information
>> hiding (private,public,strict protected, strict private,protected,published)
>> or are the strict* ones just to stop the whining of people that come from
>> other languages?
> No, it is not necessary, but handy sometimes. I agree that these are
> not a big deal,
> and FPC can live without them quite fine, but they do not break anything either.
It's almost necessary, if you want to implement real safe code and
don't wanna use tens of units.
>> What is the function of being able to add methods to records?
> Not much, I agree, given the existence of objects. It would be better to do that
> instead of introducing 'object' keyword, but that decision was made
> back in the days
> of Borland Pascal.
Indeed, not much, but the memory savings can be really interesting in
More information about the Lazarus