[fpc-pascal] Re: operator overloading and counting references / creating / destoying anonymous instances

Flávio Etrusco flavio.etrusco at gmail.com
Sat Jul 30 23:56:09 CEST 2011

On Sat, Jul 30, 2011 at 6:07 PM, Florian Klämpfl <florian at freepascal.org> wrote:
> Am 30.07.2011 22:54, schrieb Flávio Etrusco:
>>>> Repeating myself, if there isn't something like CodeTools (i.e. only
>>>> with text search) is way more difficult to search for operator
>>>> declarations.
>>> Why? Searching for operator+ is no more difficult than for function add ?
>> Blanks and linebreaks... Of course if one always use the same editor,
>> that supports searching for linebreaks, and often use Regex in it,
>> maybe they'll remember whether its Regex flavor uses \b or \s or \w
>> for blanks :-/ Of course this is not major, just annoying, since
>> you'll rarely need it.
> But the same applies to functions as well?
> nobody provents you to code like
> function
> add(...)  : ...;
> ?
> Searching for add might not be feasible because the symbol could be used
> a lot (I know about this because I'am a heavy "jump to symbol by
> grep"-user :)

I would argue that the operator is in practice a little more annoying
and, well, unnecessary, but you're right that they can be equally

Best regards,

More information about the fpc-pascal mailing list