Need 'this' to access 'opCall'? Was I trying to?
Jonathan M Davis
jmdavisProg at gmx.com
Mon Sep 26 09:14:45 PDT 2011
On Monday, September 26, 2011 09:01:20 Mehrdad wrote:
> On 9/26/2011 8:13 AM, Trass3r wrote:
> > Your opCall isn't static.
>
> Yeah, I don't want it to be. I want to use opCall on an instance, not on
> the type.
Well, it looks like having declared a non-static opCall makes the
automatically generated constructor for the struct unusable - which may or may
not be a bug (there are similar issues with declaring opCast). If you just
declare a constructor, it should solve the problem.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list