why

Hasan Aljudy hasan.aljudy at gmail.com
Sun Jul 2 20:31:32 PDT 2006



Derek Parnell wrote:
> On Mon, 03 Jul 2006 03:30:06 +1000, Hasan Aljudy 
> <hasan.aljudy at gmail.com>  wrote:
> 
>> freud wrote:
>>
>>> why do i always get a "xx.d:module xx cannot read file xx.d" when i  
>>> compile
>>> xx.d?  i'm just beginning to learn the d language, anyone can help me ?
>>>
>>
>> Could be anything, but ..
>> When it happens to me, it's because I'm using `build` and the module  
>> name doesn't match the file name.
> 
> 
> Well, I still can cause it to happen no matter method I choose. For  
> example ...
> 
> ---- main.d ----
> module xyzzy;
> void main(){}
> ------------------
> 
> build main.d is successful.
> dmd main.d is successful.
> 

This will compile fine, but try it, for example, with two such modules, 
where one imports the other.

I'm not saying it's build's fault by the way .. because it's not.
But this has happened to me before, when module names don't correctly 
match to their file names.



More information about the Digitalmars-d mailing list