www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - visibility bug

reply David Medlock <noone nowhere.com> writes:
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

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
Dec 27 2005
next sibling parent Manfred Nowak <svv1999 hotmail.com> writes:
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
Dec 27 2005
prev sibling parent "Chris Miller" <chris dprogramming.com> writes:
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.
Dec 27 2005