Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!not-for-mail From: Fily Salas Newsgroups: comp.lang.ruby Subject: Re: Understanding global variables. Date: Fri, 15 Apr 2011 08:13:42 -0500 Organization: Service de news de lacave.net Lines: 41 Message-ID: <2d350d202910142ee0f58ef60b4317c9@ruby-forum.com> References: <962f80bb11f2292d2ba5498cbfca785c@ruby-forum.com> NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: Quoted-printable X-Trace: talisker.lacave.net 1302873246 96542 65.111.164.187 (15 Apr 2011 13:14:06 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Fri, 15 Apr 2011 13:14:06 +0000 (UTC) In-Reply-To: <962f80bb11f2292d2ba5498cbfca785c@ruby-forum.com> X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 381625 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: <2d350d202910142ee0f58ef60b4317c9@ruby-forum.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:2936 Wow, a little confused, I=E2=80=99m a little disappointed that the langua= ge its = self seems to be easer but a simple concept as variables seems a little = complicated (Its probably just me). This may be confusing because I have never heard about =E2=80=9CSELF=E2=80= =9D statement, = =E2=80=9CINITIALZE=E2=80=9D method and the =E2=80=9C:=E2=80=9D notation, = I guess I need to read more = about the language. To make this short what I was trying to say with GLOBAL is accessible in = all methods within the class because I now remember reading what 7stud = said (do not use global variables) in a book. What would happen if I position a variable with the wrong notation? In = other words if I position a variable where an instance variable would = normally go but without the @ will Ruby get confused and treat this = differently and may get an error or the interpreter will simply use it = and keep track of what kind of variable it is by itself. Any good tutorial about variables in Ruby? Sorry I=E2=80=99m confused and sorry if I=E2=80=99m confusing you guys, Thank you for your patience -- = Posted via http://www.ruby-forum.com/.=