hello,
I am new to network simulator and also have no experience with tcl.
Right now, I am going through the tutorial from Marc Greis. In some
sample scripts "set ns_ [new Simulator]" is used for creating a
Sumulator object while other scripts go with a simple "ns" without a
succeeding "_" (
Hi,
On Thursday 09 February 2006 16:02, Realos Osis wrote:
> I am new to network simulator and also have no experience with tcl.
> Right now, I am going through the tutorial from Marc Greis. In some
> sample scripts "set ns_ [new Simulator]" is used for creating a
> Sumulator object while other
it is a variable and you can name it as you please. just make sure you
refer to it in the tcl code with whatever name you chose!
-Sita
>
> hello,
>
> I am new to network simulator and also have no experience with tcl.
> Right now, I am going through the tutorial from Marc Greis. In some
> sampl
rs"
Sent: Thursday, February 09, 2006 11:28 AM
Subject: Re: [ns] difference between ns and ns_ ?
>
> it is a variable and you can name it as you please. just make sure you
> refer to it in the tcl code with whatever name you chose!
> -Sita
>
>
>>
>> hello,
>>
se
> type of variable names.
>
> Thanx
> SH
>
>
> - Original Message -
> From: "Sita S. Krishnakumar" <[EMAIL PROTECTED]>
> To: "Realos Osis" <[EMAIL PROTECTED]>
> Cc: "NS users"
> Sent: Thursday, February 09, 2
On Friday 10 February 2006 17:24, Shafiq Hashmi wrote:
> Hi,
>
> I understand that the two are the same. But I would like to know why is
> there the tendency to put an 'underscore' at the end of the variables, like
> nodeID_ , msg_ , packetSize_, etc . I understand that in naming a variable
> ther
Lee Begg wrote:
>It is in the coding standard for ns2, for example, all class members (class
>variables) are to end with an underscore. The coding standard applies to all
>the code committed to NS2 itself.
>
>
>
That helps a lot. I could not find any explanation of such convention in
"ns m
umar" <[EMAIL PROTECTED]>
> To: "Realos Osis" <[EMAIL PROTECTED]>
> Cc: "NS users"
> Sent: Thursday, February 09, 2006 11:28 AM
> Subject: Re: [ns] difference between ns and ns_ ?
>
>
>
>>it is a variable and you can name it as you please