digitalmars.D.bugs - [Issue 1238] New: (private) std.stream.isdigit conflicts with std.ctype.isdigit
- d-bugmail puremagic.com (31/31) May 17 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1238
- d-bugmail puremagic.com (28/28) Jun 26 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1238
- d-bugmail puremagic.com (8/8) Aug 06 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1238
- d-bugmail puremagic.com (8/8) Feb 18 2012 http://d.puremagic.com/issues/show_bug.cgi?id=1238
- d-bugmail puremagic.com (9/9) Feb 18 2012 http://d.puremagic.com/issues/show_bug.cgi?id=1238
- d-bugmail puremagic.com (12/12) Aug 18 2013 http://d.puremagic.com/issues/show_bug.cgi?id=1238
- d-bugmail puremagic.com (10/10) Sep 05 2013 http://d.puremagic.com/issues/show_bug.cgi?id=1238
http://d.puremagic.com/issues/show_bug.cgi?id=1238 Summary: (private) std.stream.isdigit conflicts with std.ctype.isdigit Product: D Version: 1.015 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: bugzilla digitalmars.com ReportedBy: ryg gmx.net Repro: // ---- start import std.stdio; import std.stream; import std.ctype; void main() { writefln("%d", isdigit('1')); } // ---- end The problem seems to be the couple of "helper functions" at the end of stream.d. Easiest workaround would probably simply declaring them static as well as private (and the same probably applies to other module-scope private variables/functions in Phobos). Anyway, since the spec states that "Private module members are equivalent to static declarations in C programs" (in "Attributes"), declaring anything "private" at module scope should probably force static linkage. --
May 17 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1238 smjg iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smjg iname.com Keywords| |rejects-valid Summary|(private) std.stream.isdigit|Private identifiers in |conflicts with |imported modules create |std.ctype.isdigit |conflicts wtih public ones A self-contained testcase: ---------- module ppc_1a; import ppc_1b; import ppc_1c; int qwert = yuiop; ---------- module ppc_1b; private int yuiop; ---------- module ppc_1c; public int yuiop; ---------- ppc_1a.d(5): Error: ppc_1b.yuiop at ppc_1b.d(3) conflicts with ppc_1c.yuiop at ppc_1c.d(3) ppc_1a.d: module ppc_1a ppc_1b.yuiop is private ---------- --
Jun 26 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1238 dsimcha yahoo.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thecybershadow gmail.com *** Bug 1754 has been marked as a duplicate of this bug. *** --
Aug 06 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1238 Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1218502560ca19d7cf95bf277525b17c3b7186eb fixed Issue 1238 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 18 2012
http://d.puremagic.com/issues/show_bug.cgi?id=1238 Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e6c8554df338a13202d4140ea7a6b1b37853f5c1 Revert "fixed Issue 1238" This reverts commit 1218502560ca19d7cf95bf277525b17c3b7186eb. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 18 2012
http://d.puremagic.com/issues/show_bug.cgi?id=1238 Adam D. Ruppe <destructionator gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |destructionator gmail.com 07:16:25 PDT --- This is still a problem with D2... adding a private function shouldn't break the build of user modules. There's no ambiguity because obviously the private one is never wanted as it is inaccessible anyway. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 18 2013
http://d.puremagic.com/issues/show_bug.cgi?id=1238 Vladimir Panteleev <thecybershadow gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich gmail.com 02:12:42 EEST --- *** Issue 10411 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: -------
Sep 05 2013