January 20, 2012 [Issue 7329] New: local imports are underdocumented | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7329 Summary: local imports are underdocumented Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: websites AssignedTo: nobody@puremagic.com ReportedBy: timon.gehr@gmx.ch --- Comment #0 from timon.gehr@gmx.ch 2012-01-20 11:59:23 PST --- Local imports appear in the grammar, but their semantics is unspecified. For example, DMD lets local imports hide local variables: void main(){ string[string] map; pragma(msg, typeof(map)); // "string[string]" { import std.algorithm; pragma(msg, typeof(map)); // "void" } } But the documentation does not say if this is valid or if it is a bug. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 16, 2013 [Issue 7329] local imports are underdocumented | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=7329 Martin Krejcirik <mk@krej.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peter.alexander.au@gmail.co | |m --- Comment #1 from Martin Krejcirik <mk@krej.cz> 2013-06-16 19:45:23 CEST --- *** Issue 10378 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation