[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scoping rules and function names



The following doesn't quite fit my idea of es scoping rules.

; fn foo args { echo outside args }
; let (fn-foo = @ args { echo inside $args} ) { foo bar }
outside bar
; let (fn-foo = @ args { echo inside $args} ) { $fn-foo bar }
inside bar

And I thougth foo was equivalent to $fn-foo?  Clearly not!  Is this a
designed in feature or a bug?

- Harald