From: Charles Comstock Date: 2004-02-16T10:59:52+09:00 Subject: Re: Methods outside classes Francis Hwang wrote: > Some languages draw hard distinctions between "methods", "functions", > "subroutines", etc., but Ruby's much more laid-back than that. You'll > notice a similar sort of looseness with @ and @@ variables, which can > act differently if they're declared at a global scope than if they're > declared within a class or method definition. > > (Now, if you get seriously into Ruby's more functional aspects you'll > have to learn the differences between procs and lambdas, but you can > still do a lot without learning that stuff.) > What is the technical definition right now? And which part is implemented and which parts are future changes? As far as I understood it, lambda's introduced a complete new scope so you could shadow variables above, whereas procs produced a more loose scope. But perhaps I misunderstood. Anyone have a good definition/example? Charles Comstock