Le 09/05/2012 22:53, Adam Wilson a écrit :
This requires modifying significant chunks of the D semantic analysis
engine and is a project that only a few people could pull off, I imagine
that that list goes something like Walter, Don, Brad, and Kenji. It's
doable, but the guys on that list have way bigger fish to fry and
frankly, that seems like a sledgehammer solution to a needle-sized
problem. I don't think we need to go that far right now.
My patch leaves auto-functions intact in DI so that D can do its
analysis, and the non-CTFEable code problem can be solved by scrubbing
Phobos of any reliance on DRT CTFE. It's a much simpler solution. For D3
we can tackle the big work.
This is a huge problem if you use DMD source code. I noticed that :D
It is not that of a big problem, I'm pretty confident this can be solved
with a more appropriate parser/AST/tools to work on the AST.