if any enhancements to NXc are still planned, then enabling procedures to be passed to functions as parameters would be fine...
Code: Select all
void foo( int myvar1, long bas() ) {
// does anything meaningful
};
task main() {
foo(2000, MotorRotationCount(OUT_A));
foo(100, SensorUS(S3));
foo(800, SensorRaw(S1));
while(1);
}