On Fri, 2004-08-13 at 23:47, Leopold Toetsch wrote: > Hildo Biersma <[EMAIL PROTECTED]> wrote:
> > - How do I define a class with constant values that are accessible to > > other classes? > I'd just create an include file with the constants. The dot isn't > allowed in identifiers, so you would need a bit of name mangling. > > # your_lib.inc > > .const int WMQ::MQC::MQOD_READ_ONLY = 42 > > or > > # your_lib.pasm > > .constant WMQ::MQC::MQOD_READ_ONLY 42 I considered that for SDL and OpenGL, but I'm not sure how to expose that to high level languages. I ended up with what's in SDL::Constants as a compromise. It's not spectacular, but it doesn't hide things completely inaccessably. -- c