Thread overview |
---|
December 20, 2003 import blocks | ||||
---|---|---|---|---|
| ||||
Was just thinking that import blocks may be a handy thing to have instead of... import std.string; import std.c.windows.windows; import std.utf; something like import { std.string; std.c.windows.windows; std.utf; } or import { std.string; std.c.windows.windows; std.utf; } you would still have the order of include you want , it would just save some typing just a thought :) |
December 20, 2003 Re: import blocks | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lewis | > you would still have the order of include you want , it would just save some typing > > just a thought :) You can do this: import std.string, foo, std.stream; |
December 20, 2003 Re: import blocks | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vathix | Vathix wrote:
>>you would still have the order of include you want , it would just save
>
> some typing
>
>>just a thought :)
>
>
>
> You can do this:
>
> import std.string, foo, std.stream;
>
>
>
oh, ok... sorry didnt know that was possible, thanks
|
December 20, 2003 Re: import blocks | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lewis | Lewis wrote:
> Vathix wrote:
>
>>> you would still have the order of include you want , it would just save
>>
>>
>> some typing
>>
>>> just a thought :)
>>
>>
>>
>>
>> You can do this:
>>
>> import std.string, foo, std.stream;
>>
>>
>>
>
> oh, ok... sorry didnt know that was possible, thanks
Neither did I... :O Sweet. I was about to say how much I like this idea... guess I'll say how much I like that somebody did it (all hail Walter!?).
- C. Sauls
- Invironz
|
December 20, 2003 Re: import blocks | ||||
---|---|---|---|---|
| ||||
Posted in reply to C. Sauls | "C. Sauls" <ibisbasenji@yahoo.com> wrote in message news:bs2ek1$hde$1@digitaldaemon.com... > Lewis wrote: > > Vathix wrote: > > > >>> you would still have the order of include you want , it would just save > >> > >> > >> some typing > >> > >>> just a thought :) > >> > >> > >> > >> > >> You can do this: > >> > >> import std.string, foo, std.stream; > >> > >> > >> > > > > oh, ok... sorry didnt know that was possible, thanks > > Neither did I... :O Sweet. I was about to say how much I like this idea... guess I'll say how much I like that somebody did it (all hail Walter!?). > > - C. Sauls > - Invironz I was wondering why not many people were using it :) |
December 20, 2003 Re: import blocks | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vathix | Vathix wrote:
>"C. Sauls" <ibisbasenji@yahoo.com> wrote in message
>news:bs2ek1$hde$1@digitaldaemon.com...
>
>
>>Lewis wrote:
>>
>>
>>>Vathix wrote:
>>>
>>>
>>>
>>>>>you would still have the order of include you want , it would just
>>>>>
>>>>>
>save
>
>
>>>>some typing
>>>>
>>>>
>>>>
>>>>>just a thought :)
>>>>>
>>>>>
>>>>
>>>>
>>>>You can do this:
>>>>
>>>>import std.string, foo, std.stream;
>>>>
>>>>
>>>>
>>>>
>>>>
>>>oh, ok... sorry didnt know that was possible, thanks
>>>
>>>
>>Neither did I... :O Sweet. I was about to say how much I like this
>>idea... guess I'll say how much I like that somebody did it (all hail
>>Walter!?).
>>
>> - C. Sauls
>> - Invironz
>>
>>
>
>
>I was wondering why not many people were using it :)
>
>
>
>
>
Personally I find the single import easier to copy/paste.
|
December 20, 2003 Re: import blocks | ||||
---|---|---|---|---|
| ||||
Posted in reply to J Anderson | Yea, i like them spread out makes it easier to read (for me ), i usually dont do bit x, y, z, ab; either :). C "J Anderson" <REMOVEanderson@badmama.com.au> wrote in message news:bs2k3g$ppq$2@digitaldaemon.com... > Vathix wrote: > > >"C. Sauls" <ibisbasenji@yahoo.com> wrote in message news:bs2ek1$hde$1@digitaldaemon.com... > > > > > >>Lewis wrote: > >> > >> > >>>Vathix wrote: > >>> > >>> > >>> > >>>>>you would still have the order of include you want , it would just > >>>>> > >>>>> > >save > > > > > >>>>some typing > >>>> > >>>> > >>>> > >>>>>just a thought :) > >>>>> > >>>>> > >>>> > >>>> > >>>>You can do this: > >>>> > >>>>import std.string, foo, std.stream; > >>>> > >>>> > >>>> > >>>> > >>>> > >>>oh, ok... sorry didnt know that was possible, thanks > >>> > >>> > >>Neither did I... :O Sweet. I was about to say how much I like this idea... guess I'll say how much I like that somebody did it (all hail Walter!?). > >> > >> - C. Sauls > >> - Invironz > >> > >> > > > > > >I was wondering why not many people were using it :) > > > > > > > > > > > Personally I find the single import easier to copy/paste. > |
Copyright © 1999-2021 by the D Language Foundation