Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #7226

Re: Learn Ruby The Hard Way Exercise 19

Newsgroups comp.lang.ruby
Date 2016-04-18 14:25 -0700
References <873523bf-6a50-46f0-a3bd-20361b518960@googlegroups.com> <dnkqm6F934mU1@mid.individual.net>
Message-ID <65d57c83-35ce-48b3-9d7a-30da3b8bcdf6@googlegroups.com> (permalink)
Subject Re: Learn Ruby The Hard Way Exercise 19
From Cai Gengyang <gengyangcai@gmail.com>

Show all headers | View raw


Might be missing something, but I don't see the word "scope" in the text. Is there a good simple , easy to understand definition of scope online on a website somewhere ?


On Tuesday, April 19, 2016 at 3:26:08 AM UTC+8, Robert Klemme wrote:
> On 18.04.2016 20:24, Cai Gengyang wrote:
> 
> > A little confused, what exactly is the point of the exercise --- Is
> > it simply to introduce variables ?
> >
> > It says in the text that this exercise is to reinforce the point that
> > quote : "The variables in your function are not connected to the
> > variables in your script." --- what does this sentence mean ?
> 
> Apparently it tries to teach you the concept of "scope".  But there is
> more text on the page that should help you understand.  It seems to be
> called "... the hard way" for a reason... :-)
> 
> Cheers
> 
> 	robert
> 
> 
> -- 
> remember.guy do |as, often| as.you_can - without end
> http://blog.rubybestpractices.com/

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Learn Ruby The Hard Way Exercise 19 Cai Gengyang <gengyangcai@gmail.com> - 2016-04-18 11:24 -0700
  Re: Learn Ruby The Hard Way Exercise 19 Robert Klemme <shortcutter@googlemail.com> - 2016-04-18 21:25 +0200
    Re: Learn Ruby The Hard Way Exercise 19 Cai Gengyang <gengyangcai@gmail.com> - 2016-04-18 14:25 -0700
      Re: Learn Ruby The Hard Way Exercise 19 Robert Klemme <shortcutter@googlemail.com> - 2016-04-18 23:36 +0200
        Re: Learn Ruby The Hard Way Exercise 19 Cai Gengyang <gengyangcai@gmail.com> - 2016-04-18 15:55 -0700
          Re: Learn Ruby The Hard Way Exercise 19 viper11@gmail.com - 2016-04-22 13:21 -0700

csiph-web