wishlist for NXC

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.

Re: wishlist for NXC

Postby HaWe » 03 Jul 2013, 15:10

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)
User avatar
HaWe
 
Posts: 2500
Joined: 04 Nov 2014, 19:00

Previous

Return to Mindstorms Software

Who is online

Users browsing this forum: No registered users and 2 guests

cron