[AD] Function parameter ordering conventions

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


Elias and I were discussing how function parameters should be ordered
with the new API. I thought (and I think Elias agreed) that the order
function(src, src_params, dst, dst_params) is the most natural, and that
flags should go last. For example al_put_pixel(color, dx, dy),
al_draw_bitmap(picture, dx, dy, flags), and
al_draw_scaled_bitmap(picture, sx, sy, sw, sh, dx, dy, dw, dh, flags).
I think this style is more consistant than the current one used in
Allegro, while not different enough to turn current users off of the new
API.

Since the API will be around for a while, and we want to get it right,
I'm asking here for other people's opinions. How do you think the
ordering should go?





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