info-sather
[Top][All Lists]
Advanced

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

Re: Interfacing with C - macros and stuff


From: Marek Janukowicz
Subject: Re: Interfacing with C - macros and stuff
Date: Tue, 11 Jan 2011 09:24:07 +0100
User-agent: KMail/1.13.5 (Linux/2.6.36-gentoo; KDE/4.5.3; x86_64; ; )

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]