Re: Interfacing with C - macros and stuff

Marek Janukowicz <[email protected]> Tue, 11 Jan 2011 09:24:07 +0100
Newsgroups gmane.comp.lang.sather.announce
Organization Starware
Message-ID <[email protected]>
Hello

On Monday 10 of January 2011, Keith Hopper wrote:
> > external C class C_SMTH is
> > 
> >    const AI_PASSIVE : C_INT;
> > 
> > end;
> 
>       This merely indicates that there already is a constant defined
> externally in some xxx.h or xxx.c of that name. All it does is define a
> Sather name so that the Sather compiler can put in the relevant linking
> information for gcc - with 'external class' name mangling, rather than
> ordinary Sather class name mangling.

That's exactly what (I think) I need, but the problem is my example won't 
compile, because the compiler says I can't leave the constant uninitialized.

-- 
Marek Janukowicz