cge mog lalis..panudlo nalang mo diha
goto statements in C++ is shunned :mrgreen:
in embeded RTOS system goto statement is better than modular program...
ano pa hinihintay nyo mag goto na kayo... i prefer use goto statement everyday...
It depends on the task, really. Just because you have a hammer doesn't mean you should see everything as a nail. Procedures and gotos are mere abstractions to similar machine instructions. If your prefer to push your current location to the stack, jump to another location, pop the stack, and jump back to where you came from, then by all means use it. If you need clarity and higher-level organization, then use procedures. Way magbuot nimo. :mrgreen:
[ simon.cpu ]
depending on the microcontroller or cpu used in rtos, frv from fujitsu do better than motorola or intel...so technical, hard to explain... basta i prefer use goto statement everytime i'm out in da ofis![]()
Similar Threads |
|