#70 bare functions with instance parameters do not compile

open-accepted
language (4)
5
2012-10-15
2012-10-10
No

According to the "nesC 1.3 Language Reference Manual" instance parameters are also possible for bare commands or events (see section 5.4, page 10). However, when I create a module with "provides command void testMe[uint8_t]();" nesC 1.3.4 complains about this line: "variables and functions cannot be declared in component specifications". It complains fine when I remove the instance parameters (or course also in the implementation of the command/event).

So, either nesC is wrong or the documentation...

Discussion

  • Daniel Minder

    Daniel Minder - 2012-10-10

    Ups, last sentence of first paragraph should start with "It compiles fine..." :)

     
  • David Gay

    David Gay - 2012-10-15

    Confirmed...

     
  • David Gay

    David Gay - 2012-10-15
    • status: open --> open-accepted
     
  • Nobody/Anonymous

    Along with everything which seems to be developing inside this particular subject material, many of your viewpoints are generally rather refreshing. However, I appologize, but I can not subscribe to your whole idea, all be it radical none the less. It looks to everybody that your opinions are not entirely rationalized and in simple fact you are your self not entirely convinced of your argument. In any event I did take pleasure in examining it.
    <a href="http://jobs.freelanceswitch.com/f/motioncourse5" title="find the best celebrity dress">find the best celebrity dress</a>

     
  • Nobody/Anonymous

    THIS [url=http://udaydiets.exblog.jp/]2 Days Diet[/url] HELPED ME CURB APPETITE And also GAVE ME Much more Power I Never Need to Diet , THE Pills DO Excellent JOB OF STOPPING ME Consuming SNACKS. AND I 'D Prefer to DO SOME Physical exercise Final MONTH TO Drop Much more FAT .

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks