June 23, 2008 [Issue 191] Cannot refer to member variable in default value for method parameter | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=191 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Comment #1 from bugzilla@digitalmars.com 2008-06-23 16:43 ------- This isn't a bug, it is the way it is designed to work. The example will work, however, if you add 'const' to the declaration of x. -- |
Copyright © 1999-2021 by the D Language Foundation