http://d.puremagic.com/issues/show_bug.cgi?id=8384


Adam D. Ruppe <destructiona...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructiona...@gmail.com


--- Comment #18 from Adam D. Ruppe <destructiona...@gmail.com> 2012-08-15 
14:34:54 PDT ---
I think rejecting might be the best option because if you treat it as a string,
what if it doesn't have a 0 terminator? That could easily happen if you pass it
a pointer to a D string.

I don't think that is technically un-@safe, but it could be a problem anyway to
get an unexpected crash because of it. At least with to!string(char*) you might
think about it for a minute and avoid the problem.


So on one hand, I think it should just work, but on the other hand the compile
time error might be the most sane.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to