On Wed, 12 Mar 2014 09:54:00 -0400, Steve Teale <[email protected]> wrote:

On Wednesday, 12 March 2014 at 13:45:30 UTC, Steven Schveighoffer wrote:

What is typeof(x)? It needs to be decided at compile time.

-Steve

OK, squirm, squirm - I misunderstood the examples for typeof.

Will you take a look at my last post on d.learn please. What I describe there is the motivation for my squirming. Can you suggest a compile-time way of telling ControlSet what class it is targeting at the point where an instance of it is declared?

I saw that, but I think what you encountered was a bug in the compiler or differently-generated vtables. I think you should focus on trying to identify and fix the bug rather than trying to exploit a workaround.

One thing to try is re-compiling all your code. Any changes in vtables will mess up the linkage. If the compiler thinks your function to call is in index 2 in one compilation, but it's in index 3 in another, bad things will happen :)

-Steve

Reply via email to