return string from inside if block => Segmentation Fault: 11
Robert M. Münch via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jun 1 10:19:50 PDT 2015
On 2015-06-01 17:06:27 +0000, Kapps said:
> Chances are very good that it's the code within the if statement,
> classes are null by default, you're checking if null isEmpty, thus
> getting a segfault.
Isn't the construtor of the contained types run when the class is
constructed? Or do I need to explicitly initialize the contained types
on my own?
(haven't touched the OO part of D yet so much)
--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster
More information about the Digitalmars-d-learn
mailing list