[Issue 7815] Mixin template forward reference (?) regression

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 11 10:48:24 PDT 2012


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



--- Comment #16 from Walter Bright <bugzilla at digitalmars.com> 2012-04-11 10:49:07 PDT ---
Ok, here's the problem.

Attempt to compile BasicVector.
Expand Expression!(1)().
Expand closureOf!() which is needed to initialize lhsClosure.
  1. closureOf has two members 1. the static if 2. the enum closureOf
  2. in order to initialize lhsClosure, closureOf must be eponymous
therefore, we must evaluate the static if.
Evaluating the static if evaluates bar(T)(T)
bar(T)(T) evaluates Expression!(2)()
Expression!(2)() needs to eponymously expand closureOf!()

And so we wind up in a circle, hence the confusing error message.

It "worked" prior because the circular reference error was ignored.

-- 
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