Re: [AD] About my load_sample patch

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


On July 25, 2002 09:19 am, Laurence Withers wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thursday 25 July 2002 15:40, Vincent Penquerc'h wrote:
> > The only solution I see is making the base code
> > using only void* and adding a layer for BITMAPs, SAMPLEs, etc
> > that redirect to the base with casts, which is not very very
> > nice.
>
> You are right about that. But it's not such a bad thing to implement
> (quite easy if you like linked lists and vtables :-) ); the only thing
> is, it's not type-safe. Not that this is a huge problem, given the
> context.
>
> If anyone is interested, maybe I could get a patch ready?
>

You want type-unsafeness? Look at perl... *shudder* I've been playing with 
making a module in C... And it looks like you get to cast every type to an 
(SV *) when you want to do something a bit more complicated than normal...

-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx
http://strangesoft.net



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