lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


"Upvalues are local to the combination of a LuaState and a C library"

-- I thought upvalues where specific to a lua function (or more specifically a closure).


On Mon, Jan 7, 2013 at 2:00 AM, Thijs Schreijer <thijs@thijsschreijer.nl> wrote:

I had some trouble getting the images up on the wiki, so in a time squeeze I put it on my blog;

“Lua; states, threads, libraries and memory layout”

http://www.thijsschreijer.nl/blog/?p=693 so at least it’s out there now

 

I made several updates, so it certainly could use an extra review. So please let me know if you find any errors or have comments

 

Thijs

 

 

From: Eduardo Ochs [mailto:eduardoochs@gmail.com]
Sent: zondag 22 april 2012 16:18
To: Thijs Schreijer
Subject: Re: LuaState and library layout

 

Hi Thijs,

...good job! I have used coroutines very little and never used threads,

so I can't help with checking whether all your ideas are correct or not,

but your explanation is very clear and we certainly need more of those!
Cheers, thanks, and please put this on the wiki to encourage more

people to produce diagrams! =)

  Eduardo Ochs

 

P.S.: one of my diagrams:

http://angg.twu.net/dednat5/eoo.lua.html#box-diagram

On Sat, Apr 21, 2012 at 6:59 PM, Thijs Schreijer <thijs@thijsschreijer.nl> wrote:

 

While getting into writing some C libraries, I had a hard time grasping the different concepts used. I like pictures, a lot, but somehow there’s lot of text, but little pictures. So I’ve drawn myself a picture that tells me how this stuff relates to each other (at least what I got from it).

 

If deemed useful (and correct) I’ll put it up on the wiki.

 

Link; http://www.thijsschreijer.nl/blog/?download=LuaStateAndLibraryLayout.pdf

 

Feedback appreciated.

Thijs

 




--
Brian Maher >> Glory to God <<