DMD optimization bug?

Jacob Carlborg doob at me.com
Fri Mar 22 05:25:44 PDT 2013


On 2013-03-22 13:00, Dmitry Olshansky wrote:

> Yes, that or ref parameter.
>
> Another option is:
>
> return null - doesn't exists (both ptr and .length are zeros)
>
> return a slice that has zero length and non-zero ptr - exists but empty
>
> Dunno if it's suitable to what your doing with it later on.

Yeah, that would probably also work. Thanks for the help.

BTW, was it only luck that it worked with out optimizations?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list