Alexander Burger <[email protected]> writes:
Hi Alex,
>> I forgot what the "~" is about (e.g. in ~( ... )), and could not find
>> the explanation.
>
> It is described in "doc/ref.html#macro-io". The tilde is similar to the
> backquote, in that both evaluate the following expression, and put the
> result into the currently read list. While the backquote inserts the
> result as it is, the tilde expects that the result is a list which is
> then spliced into the read list.
>
> : (1 2 `(chop "abc") 3 4)
> -> (1 2 ("a" "b" "c") 3 4)
>
> : (1 2 ~(chop "abc") 3 4)
> -> (1 2 "a" "b" "c" 3 4)
I knew I read about it, but forgot where. Searching in 'PicoLisp Works'
did not help, since the tilde character is not found (on scribd at
least).
> Besides this, the tilde has a special meaning when separating a namespace
> and a symbol name, e.g. myPackage~mySymbol
>
>
>> And isn't "^" another meta character (with what meaning in PicoLisp)?
>
> Not in internal symbols. In transient symbols (strings), however, it
> denotes a control character. e.g. "^I" is TAB and "^M" is carriage
> return . "abc^Jdef^Jghi^J" is a text of three lines.
I see, thanks!
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe