http://d.puremagic.com/issues/show_bug.cgi?id=4786
Summary: enum of run-time array length Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: accepts-invalid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2010-09-01 12:11:48 PDT --- This compiles with no errors with DMD 2.048, but I think it's a bug, because args.length is a value known only at a run-time, while enum is for values known at compile-time: void main(string[] args) { enum int n = args.length; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------