Re: [AD] Allegro 5 new config routines, alpha 2

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


----- Original Message ----- 
From: "Laurence Withers" <lwithers@xxxxxxxxxx>
To: "Elias Pschernig" <eliaspschernig@xxxxxxxxxx>
Sent: Sunday, February 10, 2002 5:40 PM
Subject: Re: [AD] Allegro 5 new config routines, alpha 2

> Sorry to come into the conversation so late (I have been moving mail client, 
> among other things), but have you seen the sample API I proposed on 
> Allegro.cc? It is to be found at:
>  http://www.lwithers.demon.co.uk/prog/allegro/new_api/
> 
> I think there are many similarities between the two, but maybe you can grab 
> an idea or two from it?
>
> In reply to Elias Pschernig:
[..]
> 
> Or how about using printf() style functions?
> 
> int al_get_x_int(const char*, ...);
> 
> al_get_x_int("%s/user_info/%d/%s/handicap",
>   program_name, user_number, user_name);
> 

Yes, it would be very nice for user code to have an _x_ version like this
for all the al_get_* functions. I seem to have to allocate a lot of
temporary strings and use lots of sprintfs right now :)

--
Elias Pschernig



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/