| Thread overview | |||||
|---|---|---|---|---|---|
|
October 15, 2012 Re: Import improvement | ||||
|---|---|---|---|---|
| ||||
On 2012-43-15 14:10, Manu <turkeyman@gmail.com> wrote: > module stache.states.ingamestate; > > import fuji: filesystem, render, matrix, material, primitive, system, font; > import std: xml, string, conv, random, algorithm; > import stache: game, battlecamera; > import stache.i: statemachine, entity, collider; > import stache.entity: combatant, paimei; > import stache.thinkers: localplayer, nullthinker; > import stache.sound: soundset, music; > import stache.util.eventtypes; Looks nice. Much better than before, certainly. Now, i'm wondering, you /do/ know this is possible, right: import fuji.filesystem, fuji.render, fuji.matrix, fuji.material, fuji.primitive, fuji.system, fuji.font; import std.xml, std.string, std.conv, std.random, std.algorithm; import stache.game, stache.battlecamera; import stache.i.statemachine, stache.i.entity, stache.i.collider; import stache.entity.combatant, stache.entity.paimei; import stache.thinkers.localplayer, stache.thinkers.nullthinker; import stache.sound.soundset, stache.sound.music; import stache.util.eventtypes; Not quite as neat, but still a lot better, methinks. -- Simen | ||||
October 15, 2012 Re: Import improvement | ||||
|---|---|---|---|---|
| ||||
Attachments:
| On 15 October 2012 17:29, Simen Kjaeraas <simen.kjaras@gmail.com> wrote:
> On 2012-43-15 14:10, Manu <turkeyman@gmail.com> wrote:
>
> module stache.states.ingamestate;
>>
>> import fuji: filesystem, render, matrix, material, primitive, system,
>> font;
>> import std: xml, string, conv, random, algorithm;
>> import stache: game, battlecamera;
>> import stache.i: statemachine, entity, collider;
>> import stache.entity: combatant, paimei;
>> import stache.thinkers: localplayer, nullthinker;
>> import stache.sound: soundset, music;
>> import stache.util.eventtypes;
>>
>
> Looks nice. Much better than before, certainly.
>
> Now, i'm wondering, you /do/ know this is possible, right:
>
> import fuji.filesystem, fuji.render, fuji.matrix, fuji.material,
> fuji.primitive, fuji.system, fuji.font;
> import std.xml, std.string, std.conv, std.random, std.algorithm;
> import stache.game, stache.battlecamera;
> import stache.i.statemachine, stache.i.entity, stache.i.collider;
> import stache.entity.combatant, stache.entity.paimei;
> import stache.thinkers.localplayer, stache.thinkers.nullthinker;
> import stache.sound.soundset, stache.sound.music;
> import stache.util.eventtypes;
>
I didn't know that was possible >_<
Cheers for the protip!
| |||
October 15, 2012 Re: Import improvement | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Manu | On 10/15/12 11:46 AM, Manu wrote:
> On 15 October 2012 17:29, Simen Kjaeraas <simen.kjaras@gmail.com
> <mailto:simen.kjaras@gmail.com>> wrote:
> import fuji.filesystem, fuji.render, fuji.matrix, fuji.material,
> fuji.primitive, fuji.system, fuji.font;
> import std.xml, std.string, std.conv, std.random, std.algorithm;
> import stache.game, stache.battlecamera;
> import stache.i.statemachine, stache.i.entity, stache.i.collider;
> import stache.entity.combatant, stache.entity.paimei;
> import stache.thinkers.localplayer, stache.thinkers.nullthinker;
> import stache.sound.soundset, stache.sound.music;
> import stache.util.eventtypes;
>
>
> I didn't know that was possible >_<
> Cheers for the protip!
I think our documentation examples could be changed to use multiple imports systematically.
Andrei
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply