15 Dec
2005
15 Dec
'05
8:42 p.m.
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