[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: "namespaces and "constructor calls"
- From: Christoph Schreiber <luky0711@...>
- Date: Fri, 7 May 2010 11:24:29 +0000 (GMT)
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