wishlist for NXC

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: wishlist for NXC

Post 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)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests