[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  New config window item -> arrays.

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

New config window item -> arrays.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Mymyc   (25 posts)  [Biography] bio
Date Fri 11 Dec 2009 02:50 PM (UTC)  quote  ]

Amended on Fri 11 Dec 2009 02:55 PM (UTC) by Mymyc

Message
We can edit existing variables clicking on game menu->configure->variables or tapping Shift+Ctrl+7. We can add, edit, remove and search there etc.

What about (LUA) arrays?

It would be so wonderful add/show/edit/search/fill up with data arrays the same way!

Isn't?

Just my 2 cents...
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Fri 11 Dec 2009 07:30 PM (UTC)  quote  ]
Message
Yes, well Lua arrays can be arrays of arrays, or arrays of functions. These would be hard or impossible to represent inside the GUI. Also they can be self-referential, which would also be a big problem to display.

eg.

 
t = {}  -- make a table
t [1] = t   -- table contains itself



I usually use the "tprint" function to display arrays, as that shows nested tables, and is quite easy to read.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Twisol   USA  (2,230 posts)  [Biography] bio
Date Reply #2 on Fri 11 Dec 2009 07:33 PM (UTC)  quote  ]
Message
On the other hand, it would be quite nice to be able to edit MUSH arrays from the GUI.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


1,292 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]