[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: strings
- From: Hans Hagen <pragma@...>
- Date: Wed, 16 Dec 2009 14:29:42 +0100
Hi,
The following is valid lua
a = "text"
b = a[3]
print(a[2])
but b as well as the print are nil. Is there a reason why
this is syntactically correct cq. does not map onto sub somehow?
I could not google info for this effect
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------