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

Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  The change to lua50.dll

The change to lua50.dll

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

Posted by Shadowfyr   USA  (1,786 posts)  [Biography] bio
Date Sat 15 Oct 2005 06:03 PM (UTC)
This is a good idea, except... It creates the same potential hazard that some older ODBC applications had, where if they change to lua51.dll, or lua60.dll (I assume this 'is' a version number), then you get stuck either a) changing the client to 'fix' it so the new version works, b) renaming the dll, which could break something in Lua itself, or c) rendering Lua unusable.

This is ironically why some, though as usual, not the ones released by MS, ODBC interfaces for databases use a registry key that includes:

|--Name: mydb5.3
|--Global Name: mydb

Well, sort of. I don't remember the keys exactly, but all the ones from MS are missing them, which is why we have to specify a version number, even though the DBs are backward compatible, when linking to them in a script. For those that have the correct global name, it normally connects you to the highest version, which is pointed to by that name. The point was to avoid this kind of version dependency glitch. This 'seems' to be a potential hazard for Mushclient as well. Maybe the lua dll should not be hard coded into the client, but in the global settings (but with the ability of the client to default to the current one, if the setting is missing), in case they do come out with lua51.dll, lua60.dll or some other highly inconvenient change?
[Go to top] top

Posted by Nick Gammon   Australia  (23,003 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 15 Oct 2005 08:54 PM (UTC)
Yes, I think it is a version number, and the "50" is because version 5.1 of Lua is going to introduce various improvements.

I agree it is a potential problem, and am familiar with the version number mess that various systems get themselves into.

However having said that, a single DLL will hardly be dependant on its own name, so in the future if Lua 5.1 is released, and you are not using an external applications (like LuaSQL) then you could simply rename (or copy) lua51.dll to be lua50.dll and it should still work with MUSHclient.

However what is a [b]real[/b] problem today, is that the Lua developers seem to have standardised on releasing Lua in that form, and thus other developers (eg. LuaSQL) are writing DLLs that expect to find lua50.dll and not some other name. Without this change we have a problem today, rather than some hypothetical future problem.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


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

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at HostDash]