[Issue 2029] Typesafe variadic functions don't work in CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 15 07:42:04 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2029
--- Comment #3 from Don <clugdbug at yahoo.com.au> 2009-09-15 07:42:03 PDT ---
(In reply to comment #2)
> (In reply to comment #1)
> > I'd like this to work too :) I guess I should make a patch ...
>
> I had a quick go at it before the last release. I didn't include it because it
> required changes outside of interpret.c. So I did member functions instead <g>.
> Should work on D1 as well.
To clarify: you can just comment out the lines near the top of interpret.c that
displays the error message about typesafe variadics. But then you find that it
doesn't compile, because it's trying to modify a global variable __arrayArg1.
(The CTFE error messages make it a lot easier to understand what's happening
<g>).
Something similar happens with struct constructors, and I think it's wrong.
It's more difficult to know how to fix it without breaking something else.
--
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