lua-users home
lua-l archive

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


(Sorry if this question has been answered thousands of times before.)
How is the 'cleanest' option to desing a (C-coded) module?

After some small researching, I found there was not 
(by obvious reasons) something like:

  require 'canvas', param

So I implemented something like this:

  require 'canvas'
  canvas.init('/dev/fb0') 
  -- canvas usage