Re: Some usefull feature from lua 5.2

  • From: "Yichun Zhang (agentzh)" <agentzh@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 8 Jul 2015 14:22:21 +0800

Hello!

On Wed, Jul 8, 2015 at 2:18 PM, William Adam wrote:

Couldn't you do that on your own with a simple hash table where the lua
state is the key? What's the benefit of having it in the lua API.


No hash table can guarantee O(1) overhead in *all* cases. Also, less
code is almost always a good thing :)

Regards,
-agentzh

Other related posts: