Page 25 of 25

Re: wishlist for NXC

Posted: 03 Jul 2013, 15:10
by HaWe
John,
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);  

}
(if no longer for NXC, then even maybe for EVC)