[Issue 11284] add -allinst compiler switch
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 18 16:07:30 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11284
Max Samukha <samukha at voliacable.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |samukha at voliacable.com
--- Comment #4 from Max Samukha <samukha at voliacable.com> 2013-10-18 16:07:29 PDT ---
(In reply to comment #1)
> It makes sense, but in this particular case: Why is foo!double put into a.obj
> in the first place, when it is only used in CTFE? From reading the NG, it seems
> there are a lot of unnecessary templates instantiated, for things like template
> constraints.
>
> Best regards,
> Robert
That is the problem. There should be a way to specify that a function is
intended for use only in CTFE. I tend to wrap the body of such functions in "if
(__ctfe) {...} else assert(false); but that still sucks.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list