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



--- Comment #3 from Kenji Hara <k.hara...@gmail.com> 2012-06-01 21:25:08 PDT ---
(In reply to comment #2)
> Sorry, could you please explain how/why you say that is not a bug? o.O

See the output of my code. In both version(A) and version(B),

  pragma(msg, "1[", Dummy!().Hook.mangleof, "]");

prints "1[S4test10__T5DummyZ4Hook]", and

  pragma(msg, "2[", Dummy!(sth).Hook.mangleof, "]");

prints "2[S4test4Temp32__T5DummyS19_D4test4Temp5FieldiZ4Hook]".
It isn't dependent to the order. There is no bug.


And, with current dmd implementation, pragma(msg, e1, e2, ...); is interpreted
as:

  eval e1 -> print e1 -> eval e2 -> print e2 -> ...

So the printing of pragmas in myMangledName template runs *before* the printing
of myMangledName!(Field) result.

(I can agree it is compiler implementation dependent behavior, but cannot agree
to mark it as a bug.)

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

Reply via email to