Re: Can Objects has multiple classes?



On Thu, 2004-05-08 at 18:11 +0900, Ryan McDougall wrote:
> Hello,

> The idea is to jump directly to the correct function without
> incurring the cost of constantly (typeA)? fun1() : fun2(); by setting
> the class pointer at initialization.
> 

Oh yeah, and the (type)? fun1:fun2 may be potentially called thousands
of times in loops by design necessity. I'd prefer to set it to fun1 or
fun2 at init time without having every object waste 8 bytes.

> 
> Cheers,
> Ryan
> 

Cheers,
Ryan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]