Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Suggestions ➜ New config window item -> arrays.

New config window item -> arrays.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Mymyc   (25 posts)  Bio
Date Fri 11 Dec 2009 02:50 PM (UTC)

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...
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 11 Dec 2009 07:30 PM (UTC)
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
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #2 on Fri 11 Dec 2009 07:33 PM (UTC)
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
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.


12,999 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.