opApply outside of struct/class scope

Jonathan M Davis via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 10 11:58:49 PDT 2014


On Sunday, 10 August 2014 at 18:45:00 UTC, Freddy wrote:
> Is there any why i can put a opApply outside of a struct scope

No overloaded operators in D can be put outside of a struct or 
class. They have to be member functions.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list