https://d.puremagic.com/issues/show_bug.cgi?id=10413
monarchdo...@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |monarchdo...@gmail.com --- Comment #2 from monarchdo...@gmail.com 2014-04-08 08:10:53 PDT --- (In reply to comment #1) > With constructions like: > template Foo(T...) > > T[0].init > is OK if T[0] is a type, but if it is a value, it won't compile. If the template code doesn't make sense, then it doesn't compile. Seems fine to me. > It is in fact pretty bizarre that 2.init == 0, so this should probably be > changed. ".init" is a static property, and as such, can be called on either type or instance, just the same way you can write "assert(1.max == 0x7FFFFFF)". As a matter of fact, I'm pretty sure I've seen this used before, instance of having to pulling out the "typeof". I'm not sure changing this would be correct. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------