Proposal for custom time string formatting in std.datetime

Jacob Carlborg doob at me.com
Sun Dec 25 06:00:57 PST 2011


On 2011-12-25 04:05, zhang wrote:
>> On Fri, 23 Dec 2011 02:21:37 -0000, Walter Bright
>> <newshound2 at digitalmars.com>  wrote:
>>
>>> On 12/22/2011 11:25 AM, Piotr Szturmaj wrote:
>>>> I wish D could support partial modules - partial as analogy to C#'s
>>>> partial
>>>> classes.
>>>>
>>>> module std.datetime-unit1;
>>>> import std.datetime-unit2;
>>>> // dash allowed only in submodules with the same module name
>>>> ...
>>>>
>>>> module std.datetime-unit2;
>>>> import std.datetime-unit1;
>>>> ...
>>>>
>>>> // then
>>>>
>>>> module whatever;
>>>> import std.datetime; // as usual
>>>
>>>
>>> I have no idea why anyone would want this. (Is it because the file is
>>> too big to fit on a floppy disk?<g>)
>
> As for big module, my solutions are:
> 1) put related modules into a package (or directory)
> 2) add a module named all.d into the directory, and this module will import all the other modules publicly
> 3) now just import the *all* module when needed

Here we have yet another example of some one who wants to use "import 
foo.*;".

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list