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

$$... parsing



; f4 = fee fie foe foo
; name = f4
; echo $$name
fee fie foe foo
; echo $$name(4)
null variable name
; echo $($name)(4)
fee fie foe foo 4

Uh ... how to get foo starting from `name'?  Only solution I see is

; echo <={let (x=$$name) result $x(4)}
foo

Maybe the parsing rules ought to be changed so that $$name(4) and
$($name)(4) are parsed the same (and the latter the way I would have
expected it to)?  Currently, $$name(4) seems to mean $($name(4)), a
result you can easily get if you really want to anyway.

- Harald