DMD OSX / Segfault 11
Robert M. Münch via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Feb 2 10:06:29 PST 2016
I have a very strange effect, I'm not sure what it is about:
Value: {}
WordV: Value {
Value* get() {}
}
BaseOperator: Value : {
}
Now comes the code using this:
auto op = cast(BaseOperator)(Word.get());
if (op !is null) {...
If get() returns "Value*" it segfaults, if I change it to "Value" it
works. How can this be?
I want to check of the Value returned from get() is a BaseOperator or not.
--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster
More information about the Digitalmars-d-learn
mailing list