Re: [Tinyos-help] nesc question - declaring a variable that is dependent on a type parameter

2007-07-17 Thread Hugo Sousa
Hello, Thank you all for the replies. I was trying to avoid too many parameters as that becomes confusing if many components are involved. It will build up files in the working directory but I'll create a different configuration component for each type parameter combination. Best regards Hugo

[Tinyos-help] nesc question - declaring a variable that is dependent on a type parameter

2007-07-16 Thread Hugo Sousa
Let me clarify, let's say a certain generic component has a parameter typedef width_t (and an interface with a command that allows to pass along a width_t variable) I want to perform some calculations on the variable, and store the results on other variables, but the type of those variables is

Re: [Tinyos-help] nesc question - declaring a variable that is dependent on a type parameter

2007-07-16 Thread Michael Schippling
Assuming that the example is not a strawman, can't you just use width_t everywhere that you need result storage and do your math at the maximum precision? I know that doesn't answer the actual question. There's probably someone out there who can come up with a circuitous declaration process that

Re: [Tinyos-help] nesc question - declaring a variable that is dependent on a type parameter

2007-07-16 Thread David Gay
On 7/16/07, Hugo Sousa [EMAIL PROTECTED] wrote: Let me clarify, let's say a certain generic component has a parameter typedef width_t (and an interface with a command that allows to pass along a width_t variable) I want to perform some calculations on the variable, and store the results on

Re: [Tinyos-help] nesc question - declaring a variable that is dependent on a type parameter

2007-07-16 Thread Philip Levis
On Jul 16, 2007, at 4:25 AM, Hugo Sousa wrote: Let me clarify, let's say a certain generic component has a parameter typedef width_t (and an interface with a command that allows to pass along a width_t variable) I want to perform some calculations on the variable, and store the results on