Re: is possible to have a proc within a proc?



On May 29, 1:17 pm, chedderslam <chedders...@xxxxxxxxx> wrote:
I am working on a proc which calls itself recursively. Is it possible
for a proc to have a proc within itself? I am trying to group the
code together.

If so, how would I do this?

I'm guessing there's a better way to do what you want, though without
a better explanation, I'm not sure what that is. Can you provide some
more info or some sample code that better describes what you are
trying to do?

Jeff
.



Relevant Pages

  • Re: How to suppress those messages [404] etc
    ... If you could EXECUTE the proc then CAPTURING/RETURNING clauses would ... let you do this - probably not an option I'm guessing ... so that people get a visual feedback that things are happening. ...
    (comp.databases.pick)
  • Re: proc parameter $switch "no such variable" why?
    ... I stripped the proc down to this but I get the following error anyway: ... I'm guessing you typed the error in rather than cut and paste since ... |"The man who fights for his ideals is the man who is alive." ...
    (comp.lang.tcl)
  • Re: Evolution of the eye
    ... >>Stuart wrote: ... >>>Darwin gave a pretty good explanation. ... I don't know what "Proc. ...
    (talk.origins)
  • Re: Hash.new with a block?
    ... objects with an associated Proc calls the Proc. ... Thanks for the explanation. ... static VALUE rb_hash_default(argc, argv, hash){ ... Bioinformatics Center ...
    (comp.lang.ruby)
  • Re: Hash.new with a block?
    ... Alex Gutteridge wrote: ... objects with an associated Proc calls the Proc. ... Thanks for the explanation. ... yield hash, key ...
    (comp.lang.ruby)