I have an object that may end up returning a null reference:
object O1 ("foo"); // O1 is null
object @O2 = @O1; // all ok!
This works fine: both O2 and O2 are null. So surely I can join those statements together?
object @O3 = object ("foo"); // nullptr error
But no, that doesn't work: in this case the script aborts with a nullptr error. Am I doing something wrong? Am I just misunderstanding how it is supposed to work? Is it ok to return null from a constructor? It's doing a lookup for an object with id 'foo', which may or may not exist...
Thanks for any enlightenment offered!