Thread overview | |||||
---|---|---|---|---|---|
|
December 27, 2005 visibility bug | ||||
---|---|---|---|---|
| ||||
Well I guess I couldn't stay away til '06 ! Here is the test case: // vis.d import std.stream, std.ctype, std.stdio; void main( char[][] args ) { char c = ' '; if ( isdigit(c) ) writefln( "Hello World" ); } which gives( DMD 0.141, WinXP ): ---------- Capture Output ---------- > "Z:\dmd\bin\dmd.exe" -c F:\proj\d\test\vis.d Z:\dmd\bin\..\src\phobos\std\stream.d(2912): function std.stream.isdigit conflicts with std.ctype.isdigit at Z:\dmd\bin\..\src\phobos\std\ctype.d(32) F:\proj\d\test\vis.d: module vis std.stream.isdigit is private > Terminated with exit code 1. the private members of stream should not even exist outside that module, if I read the specs correctly. -DavidM |
December 27, 2005 Re: visibility bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Medlock | David Medlock wrote:
{...]
> the private members of stream should not even exist outside that module, if I read the specs correctly.
The specs installed by my installation of dmd 0.141 only define accessability: not one word on visibility.
By the way: `private' symbols cannot be overriden?
-manfred
|
December 27, 2005 Re: visibility bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Medlock | On Tue, 27 Dec 2005 10:24:55 -0500, David Medlock <noone@nowhere.com> wrote:
> the private members of stream should not even exist outside that module,
I agree completely. This has bothered me for quite some time.
|
Copyright © 1999-2021 by the D Language Foundation