Re: [AD] a fix struct for dallegro |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Saturday 21 April 2007 08:06:32 am torhus@xxxxxxxxxx wrote:
> Ok, I can rename them to fixcos, fixsin, etc, and just remove the member
> functions. Then they would overload the fixed versions, like this:
>
> fix fixcos(fix);
> fixed fixcos(fixed);
>
> Is that a good idea, or could it cause confusion? Seems ok to me,
> global overloads are very common in C++ too. Chris, is this okay with
> you, or do you still think I should drop the whole thing?
I still think the whole fix class is at best, redundant, and at worst,
confusing and error-prone. But as long as the standard math routines aren't
overloaded, I won't complain too loudly.