Import improvement

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Oct 15 08:48:40 PDT 2012


On 10/15/12 11:46 AM, Manu wrote:
> On 15 October 2012 17:29, Simen Kjaeraas <simen.kjaras at gmail.com
> <mailto:simen.kjaras at 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


More information about the Digitalmars-d mailing list