lua-users home
lua-l archive

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


Hi again! I'm writing a lua wrapper for a chart package (Chart Director) in C++, and I'd like my users to write something like the following in their lua code:

width = Chart.DefaultWidth
height = Chart.DefaultHeight

c = Chart.XYChart(width, height) 

I want to use "Chart" as a namespace and I would like the call to "XYChart.create" look like a constructor call. How can I achive that?

Cheers
Chris