[Issue 3762] Restrictive functionality for template instance recursive expansion

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 4 05:53:49 PST 2010


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



--- Comment #1 from Don <clugdbug at yahoo.com.au> 2010-02-04 05:53:45 PST ---
> While 500 is reasonable practical limit, it would be nice to be able to 
control it somehow, with #pragma for example.

Do you have ANY use cases for this? The limit is (a) to prevent the compiler 
from crashing with a stack fault; and (b) to warn the user when they have 
inadvertently created an infinite loop.

By the way, on DMD, the limit couldn't be set much higher. It blows the stack 
at about 700. If there were a pragma, its only effect would be to create an 
error message stating that the limit cannot be increased above 500.
I just don't believe that it is 'restrictive' in any meaningful sense.

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