lua-users home
lua-l archive

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


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.