On Sat, 2005-03-19 at 01:40 +0200, Nikolay Nikolov wrote: > ml wrote: > > >btw. When writing about operators, why do they contain such little > >possibilities. operator overloads could contain possibility for > >['?','%','$','|','&','::','^'] > > > > > These are C++ operators, aren't they?
Yes (some of them are, but not all), but if you think about it basic definition of operators is to make source code more easily readable. Couldn't you imagine to use a := b % c; and a would actually contain real percentage?? or s := 'Value is : ' $ CurrentValue; and this would translate CurrentValue to currency and add to a string? btw. and yes,:) my line of work forces me to use pascal, c#, c++, c, sql, shell and a little bit of php. So I'm forced to see the beauty and the ugly parts and features of each one. And operators are a real life saver, at least for future reading of your code (that is if they are carefully designed). ml > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal