Re: [AD] C++ fix math

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


Vincent Penquerc'h wrote:

same name when it's not needed. So, I wanted to know whether
this same name was needed, and if not, rename it to another
name with a "fix" prefix.

This was just the discussion we were having earlier and that is what I was lobbying for, was to place the cos operation in the Fix class as either:

static fix fix::cos(fix x);
or
fix fix::cos();

In C++, classes and namespaces do what prefixes are normally for in C, so no need to call it fixcos but instead fix::cos. I believe it was decided to leave it as it is, though.

Gillius



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