Re: [AD] Function parameter ordering conventions

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


Jon Rafkind wrote:
Also, and this argument might not hold much weight, my scheme bindings
to allegro somewhat rely on the fact that dest is the first argument(
except for blit and friends ) and so I can do things like make a
function that assumes the first argument is implicitly 'screen'. So I
can do this:
(draw-sprite (screen) some-bitmap ...)
or
(draw-sprite-screen some-bitmap ...)

Which is only possible if dest is the first argument. For blit and those
functions I had to wrap them to achieve this affect and I could just do
that if the ordering is changed for all functions in 4.9, but I'd rather
not.

Currently we are not using dest arguments at all to the drawing functions, dest is set with al_set_target_bitmap.




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