Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: More datatypes  (Read 2709 times)

0 Members and 1 Guest are viewing this topic.

Banbury

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 36
  • I'm a llama! Mooh!
    • View Profile
More datatypes
« on: January 28, 2003, 08:33:20 AM »

Dear Santa,
I wish WME had more DataTypes like Lists, Hashtables and Trees. Trees would be very helpful for conversations. Also a way to create your own datatypes with properties and methods would be neat.

Greetings

Banbury

(Sorry that I'm a little early with my wishlist  :D)
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5677
    • View Profile
    • Dead:Code Site
Re:More datatypes
« Reply #1 on: January 28, 2003, 10:47:14 AM »

The variables in WME are actually hash tables. By using just numbers as the hash codes, you get a simple list (array). And if you assign a value an another variable, you'll get a tree (i.e. technically speaking, one hash table member references an another hash table).
The only problem is, that the scripting language doesn't allow nested member references, like

Code: [Select]
MyVariable.MyProperty.AnotherProperty.YetAnotherNestedProperty = 10; // this doesn't work :-(


But maybe Santa's gonna do something about it, when the right time comes...  ;)
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.186 seconds with 22 queries.