[ns] difference between ns and ns_ ?

2006-02-09 Thread Realos Osis
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 "_" (

Re: [ns] difference between ns and ns_ ?

2006-02-09 Thread Daniel Mahrenholz
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

Re: [ns] difference between ns and ns_ ?

2006-02-09 Thread Sita S. Krishnakumar
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

Re: [ns] difference between ns and ns_ ?

2006-02-09 Thread Shafiq Hashmi
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, >>

Re: [ns] difference between ns and ns_ ?

2006-02-09 Thread Hailun Tan
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

Re: [ns] difference between ns and ns_ ?

2006-02-09 Thread Lee Begg
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

Re: [ns] difference between ns and ns_ ?

2006-02-10 Thread Realos Osis
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

Re: [ns] difference between ns and ns_ ?

2006-02-10 Thread Martina Umlauft
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