Release build headache: -inline

Jonathan M Davis jmdavisProg at gmx.com
Sat Mar 5 17:05:24 PST 2011


On Saturday 05 March 2011 16:40:02 Tom wrote:
> Well, I did what you suggested with success (thanks).

Okay. I created a bug report for it:

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

In the meantime, I would suggest that you simply not compile with -
noboundscheck. It's likely that it rarely does anything for you anyway. It 
disables array bounds checking in @safe code, and precious little in Phobos is 
marked as @safe at this point, so unless you're marking _your_ code with @safe, 
most of it is likely @system (since that's the default), and so the -
noboundscheck doesn't actually do anything for you. Array bounds checking is 
already removed for @system and @trusted functions with -release.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list