[chuck-users] class abuse

Ge Wang ge at ccrma.Stanford.EDU
Thu Oct 1 00:51:53 EDT 2009


Greetings!

> ...
> process(obj $ Specific);        // [7] calls process(General obj)
> ===================
> which produces the following (I've annotated the line numbers):
> ===================
> ...
> [7] processing general object: Specific:5de400
> ===================
>
> ...
>
> Line [7] is what bugs me: obj is cast to the Specific class, and the 
> ChucK compiler _knows_ this at compile time.  Yet it calls the 
> process(General obj) function, NOT the process(Specific obj) function.

Yes, it would seem something is definitely amiss here - will look 
into this bug more deeply!  Thanks for the heads-up!

Ge!


More information about the chuck-users mailing list