[TF] Embedded eval
Brought to you by:
kenkeys
|
From: johans at stack.nl (J. v. Selst) - 2003-03-25 19:38:47
|
Hi David,
David Lee Heyman wrote:
> /set f1 = Some text
> /set f1t = More text
You shouldn't have spaces around the '=' here, use
/set f1=Some text
/set f1t=More text
> /def sayit = say %{1}1 %; \
> do %{1}1t
You will want to use /eval: this interprets the %-statements and will
collapse any double %%:
/def sayit = /eval say %%{%{1}1} %%;\
do %%{%{1}1t}
So when %1 is 'g' this will evaluate to 'say %{g1}%; do %{g1t};'
--
Johan van Selst <jo...@st...> Koresh@OuterSpace
PGP: finger jo...@va... telnet mud.stack.nl 3333
|