chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] 'const' types not working in define-foreign-record


From: Daniel B. Faken
Subject: Re: [Chicken-users] 'const' types not working in define-foreign-record
Date: Sat, 27 Aug 2005 12:18:44 -0400 (EDT)

On Sat, 27 Aug 2005, felix winkelmann wrote:
> On 8/25/05, Daniel B. Faken <address@hidden> wrote:
> > Hi,
> > 
> >   When I define a type like c-string, int, and others as 'const' (i.e.
> > (const c-string), (const int), ..) their accessors give garbage output.
> > 
> 
> Which accessors? Are you defining them purely as types, or inside
> a (foreign) record?

Yes, I'm using define-foreign-record and trying to make some fields 
immutable (i.e. avoiding the definition of setters) by declaring their
types e.g. (const int) instead of int.

I'll post an example on Monday.

thanks,
Daniel






reply via email to

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