View previous topic :: View next topic |
Author |
Message |
dreamkxd
Joined: 08 May 2007 Posts: 22
|
Posted: Wed Oct 29, 2008 11:48 pm Post subject: This project is meaningful and I have some advices. |
|
|
The trunk version is 40
First, in file root/trunk/import/core/bitmanip.di,
The 8th line of this file is
"module bitmanip;" I don't know if it's must be change to module "core.bitmanip"
And I think the files
exception.d
memory.d
runtime.d
thread.d
also to be place in the floder root/trunk/import/core/ will be better. (Just a advice)
And I am curios the three files in the folder root/trunk/import/std
Is this possible to migrate these three files to folder root/trunk/import/core/ ?
It's should be more meaningful, means these three file is not a general library, It's just used by the compiler, OR
The compiler intrinsic functions, so it belong to 'core', (Just a advice, maybe it's impossible);
It's possible be a good idea is we migrate the file object.di to the folder root/trunk/import/core/
so we have the
module core.object
module core.bitmanip
module core.exception
module core.memory
module core.runtime
module core.thread
module core.intrinsic for replacement of std.intrinsic
and we have
module core.stdc.*
module core.sys.windows.*
module core.sys.linux.*
module core.sys.posix.*
and for c
we have a special module
module core.stdc.stdarg; for replacement for std.stdarg and std.c.stdarg.
And I don't know why we need two stdarg file?
one is std.stdarg, and the other one is std.c.stdarg?
It's so strange. but the content of these two file is the same.
So it's should be file is we merge these two file. |
|
Back to top |
|
|
sean
Joined: 24 Jun 2004 Posts: 609 Location: Bay Area, CA
|
Posted: Tue Nov 25, 2008 5:42 pm Post subject: |
|
|
It isn't possible to move the files from import/std to import/core. The package names of these files are hardcoded in DMD and they have to live here. However, I think they can be eliminated when/if DMD is changed to reference a location in core instead.
And we need two stdarg modules because the vararg passing for D and C functions may be different. I should really add core.vararg as well (the D version of stdarg), since this is a language feature. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|