[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Setting 'div' tag method on strings
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 26 Mar 2001 14:52:08 -0300 (EST)
>But I can't do things like "print(/sys/servers/time.gettime())"
Can you settle for this intead?
print("/sys/servers/time".gettime())
If so, it's easy to add "gettable" tag methods for strings.
However, the catch is that this syntax (and more) will be supported in 4.1,
but it's not in 4.0.
For the time begin, you can use
print(_"/sys/servers/time".gettime())
where
function _(x) return x end
--lhf