Phillip Pearson - web + electronics notes

tech notes and web hackery from a new zealander who was vaguely useful on the web back in 2002 (see: python community server, the blogging ecosystem, the new zealand coffee review, the internet topic exchange).

2005-8-3

Array access in UserTalk

A question for the UserTalk hackers: are the following identical?

  • foo.bar.baz
  • foo.bar["baz"]
  • foo.bar.["baz"]

Update: I think I've sorted this out. All three of those are equal, BUT if you want to get the 3rd entry in table foo.bar, you have to do it like this: foo.bar[3].

... more like this: []