Re: [AD] Function parameter ordering conventions

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


Scott F wrote:
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.

My reasoning is that you "draw a person on the screen" not "to the screen, draw a person".




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