digitalmars.D.bugs - [Issue 498] New: Signal mixins need to import
- d-bugmail puremagic.com (24/24) Nov 12 2006 http://d.puremagic.com/issues/show_bug.cgi?id=498
- d-bugmail puremagic.com (9/9) Nov 15 2006 http://d.puremagic.com/issues/show_bug.cgi?id=498
http://d.puremagic.com/issues/show_bug.cgi?id=498 Summary: Signal mixins need to import Product: D Version: 0.173 Platform: PC OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: Phobos AssignedTo: bugzilla digitalmars.com ReportedBy: daekharel gmail.com std.signal's Signal template relies on having std.stdio, std.c.stdlib, and std.outofmemory available where it is instantiated, since it has to be mixed in, and is therefore evaluated in the scope where it is instantiated, not in the scope of the std.signals module. This means anyone wishing to use std.signals must import those modules, which is undocumented. Either this should be documented, or (better yet) the Signal template itself should import the required modules, like so: template Signal(T1...) { import std.outofmemory, std.stdio, std.c.stdlib; ... rest of template body ... } --
Nov 12 2006
http://d.puremagic.com/issues/show_bug.cgi?id=498 deewiant gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed in DMD 0.174. --
Nov 15 2006