
Re: Function pointers/custom events
He may not be able to use events as in other languages, but the long answer is you can write object oriented assembler if you want to, if you understand what object oriented means, its easy in a language like C.
What is an event? A piece of code waits for notification that something has happened.
over simplified psuedo code;
task sometask { while (true) { if (eventOccurred) doSomething(); yield(); }}
task main { start sometask; while (true) {if (haveMail) readMail(); if (mail == eventMail) eventOccurred=true; yield(); }}
If you want to get real fancy you build something called a message pump. google it.
The addition of function pointers in the future may make life easier, but there is nothing stopping you now from doing what you want to do. The bottom line is that a computer is a machine that can only add, multiply by power of 2, and compare+jump, 3 instructions. They expand on that and give us machine level code (microcode/assembler), then expand on that and give us C, next step is object oriented (e.g. C++) - you simply need to understand how those expansions occur and do a little on your own in some cases.
"Is there any way to do this in robotc without using the later?" Don't fear it, polling is how things work. the software often makes you believe it is not polling, but it ALWAYS is. Just keep your code 'multitask friendly' and it will be fine.