gdc-0.19 violates D spec bahavior on module name case sensitivity

Lars Ivar Igesund larsivar at igesund.net
Tue Oct 17 03:21:55 PDT 2006


Anders F Björklund wrote:

> Wolfgang Draxinger wrote:
> 
>> [http://www.digitalmars.com/d/module.html]
>> 
>>>By convention, package and module names are all lower case.
>>>This is because those names have a one-to-one correspondence
>>>with the operating system's directory and file names, and many
>>>file systems are not case sensitive. All lower case package and
>>>module names will minimize problems moving projects between
>>>dissimilar file systems.
>> 
>> Contrary to that GDC treats the import statement case sensitive.
>> If GDC sees within a case sensitive file system multiple files,
>> which names are ambigous if treated case insensitive it should
>> omit an error, reporting where the ambigoutiy is.
> 
> Doesn't "names have a one-to-one correspondence with file names"
> instead mean that the import statement *should* be case sensitive ?
> 
> --anders

Yes, the doc there is a convention, not spec. It just suggest that you
should use lower case names, since that might reduce problems when moving
files between systems.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource & #D: larsivi



More information about the D.gnu mailing list