Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2015-11

Enumerator operator

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sven Barth
to Ondrej Pokorny
"Ondrej Pokorny" wrote
What does the "function search_enumerator_operator" in

compiler/symtable.pas do?

Does FPC support enumerator operator overloading? If yes, how? There doesn't seem to be any information on this topic in the docs:

http://www.freepascal.org/docs-html/3.0.0/ref/refch15.html#x207-22800015

It's mentioned here:
http://www.freepascal.org/docs-html/3.0.0/ref/refsu60.html#x165-18600013.2.5 Maybe a cross reference should be added...

Regards,
Sven

Reply by email

Ondrej Pokorny
to Sven Barth
Sven Barth wrote 17 lines
Am 03.11.2015 13:49 schrieb "Ondrej Pokorny" < >: > > What does the "function search_enumerator_operator" in compiler/symtable.pas do? > > Does FPC support enumerator operator overloading? If yes, how? > > There doesn't seem to be any information on this topic in the docs: http://www.freepascal.org/docs-html/3.0.0/ref/refch15.html#x207-22800015 > It's mentioned here: http://www.freepascal.org/docs-html/3.0.0/ref/refsu60.html#x165-18600013.2.5 Maybe a cross reference should be added...

Thanks! I didn't get the idea to look in the for-in documentation.

If you want to do it systematically then the whole enumerator-operator information should be moved from for-in page into the operator overloading chapter. All operator overloading information is there.

Compare it e.g. with the arithmetic operators:

http://www.freepascal.org/docs-html/3.0.0/ref/refsu46.html#x148-16900012.8.1 : *no information about operator overloading.*
because the information is here:
http://www.freepascal.org/docs-html/3.0.0/ref/refse101.html#x211-23200015.4

Ondrej

Reply by email

Michael Van Canneyt
to Ondrej Pokorny
Ondrej Pokorny wrote 24 lines
On 03.11.2015 15:42, Sven Barth wrote: > > Am 03.11.2015 13:49 schrieb "Ondrej Pokorny" < > >: > > > > What does the "function search_enumerator_operator" in > compiler/symtable.pas do? > > > > Does FPC support enumerator operator overloading? If yes, how? > > > > There doesn't seem to be any information on this topic in the docs: > http://www.freepascal.org/docs-html/3.0.0/ref/refch15.html#x207-22800015 > > > > It's mentioned here: > http://www.freepascal.org/docs-html/3.0.0/ref/refsu60.html#x165-18600013.2.5 > Maybe a cross reference should be added... > Thanks! I didn't get the idea to look in the for-in documentation. If you want to do it systematically then the whole enumerator-operator information should be moved from for-in page into the operator overloading chapter. All operator overloading information is there.

I will create a small section and a cross-reference in operator overloading chapter.

Michael.

Reply by email