Re: [AD] Function parameter ordering conventions

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


Trent Gamblin <trent@xxxxxxxxxx> wrote:

> 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

Why put source before destination?

That's the opposite of "memcpy(dst, src, len)",
"strcpy(dst, src)", and don't forget "dst = src".

Destination first feels more natural to me.

Regards,
Scott




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