[Issue 9162] [tdpl] Non-static structs should have access to outer lexical scope

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 15 11:48:43 PST 2012


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



--- Comment #1 from hsteoh at quickfur.ath.cx 2012-12-15 11:48:42 PST ---
Also from that paragraph in TDPL:

"If you want to define a nested struct without that baggage, just prefix struct
with static in the definition of Local, which makes Local a regular struct and
consequently prevents it from accessing a and b."

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