"-inline" is bad!

Michel Fortin michel.fortin at michelf.com
Fri Nov 16 19:27:02 PST 2007


On 2007-11-16 13:00:21 -0500, Sascha Katzner <sorry.no at spam.invalid> said:

> I've just found out the hard way that it is really not wise to just 
> rebuild the changed files in a project when using "-inline", because D 
> is also inlining funtions from other files/modules and when you change 
> such a file without rebuilding the file in which it was inlined the 
> changes will not be in the resulting executable.

Take note that this also apply when you have templates in a file, 
whether you use -inline or not, since other files may instanciate the 
templates. That's unless your templates are private (and inaccessible 
from other modules) of course.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list