From: Vivek Nallur Date: 2003-09-25T12:37:01+09:00 Subject: Re: value binding and function binding |> I was just wandering through some lisp code and I saw this: |> (let ((x 1)) |> (flet ((x (y) (+ x y))) |> (x x))) | |At this point, your x variable is out of scope, so this: | |> x += y | |gives you that error (because here, x is uninitialized). |> All I want to do is to check if ruby supports the same identifier having |> both a value binding as well as a function binding. | |Yes, both inside and outside the method (separately): | | ruby -e 'def x(y); x = y; puts x; end; x = 1; x x' | => 1 Hmmm...Many thanks (btw, can I start with a capital letter after ellipses?) So, ruby does support having multiple bindings, but the |> x += y is a scoping issue(Would dynamic scope have helped?). regs Vivek -- Nothing is lost until you begin to look for it.