[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Expression syntax
- From: Edgar Toernig <froese@...>
- Date: Mon, 16 Oct 2000 01:28:27 +0200
Reuben Thomas wrote:
>
> a = "foo"
> b = "bar"
> baz a b
>
> ? What rule should apply here?
A syntax error. The form 'foo "string"' and 'foo { table }' already
is a special construct. And it's only allowed for string and table
_constants_. It's main use is in constructing complex tables like:
a = polyline {
point { x=1, y=1 },
point { x=1, y=5 },
point { x=5, y=5 },
...;
color = "green",
style = "dotted"
}
I don't want to miss it.
Ciao, ET.