lua-users home
lua-l archive

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



Tony Finch wrote:
You can declare the type of a (set of) constant(s) making it safe since
there's no implicit conversion (even if the type is just an alias). See
for example the ByteSize enum defined at
http://golang.org/doc/effective_go.html#constants
Thanks. That is a much better demonstration than the one in the documentation I read.

Stephen