[chuck-users] fun dur GetT() rises to invalid type
eduard
eduard.aylon at gmail.com
Thu Dec 15 20:42:43 EST 2005
Hi there,
I have a osc meta-instrument wich has a function to get the unit_time
to advance. Something like:
public class oscInstrument
{
// some members here
// ....
fun dur GetT(){ return T_};
}
It compiles fine, but when used in the following manner:
oscInstrument myInstrument;
while(true)
{
//do_something
//...
noteDuration::myInstrument.GetT() => now
}
it rises the following error: invalid type 'oscInstrument' in
postfix of dur expression... (must be of type 'dur') .
However if I do the following:
dur T;
while(true)
{
//do_something
myInstrument.GetT() => T;
noteDuration::T=> now
}
everything works fine.
Any ideas?
Thanks,
Eduard
More information about the chuck-users
mailing list