chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [Chicken-users] compilation warning


From: Evan Hanson
Subject: Re: [Chicken-hackers] [Chicken-users] compilation warning
Date: Fri, 26 Sep 2014 14:11:13 -0700
User-agent: OpenSMTPD enqueuer (Demoosh)

On 2014-07-11 12:56, Michele La Monaca wrote:
> On Fri, Jul 11, 2014, Michele La Monaca <address@hidden> wrote:
> > Hi,
> >
> > I get this annoying warning when defining a "count" variable at the 
> > toplevel:
> >
> > echo '(define count 1)' | csc -to-stdout /dev/stdin > /dev/null
> >
> > Warning: at toplevel:
> >   assignment of value of type `fixnum' to toplevel variable `count'
> > does not match declared type `(forall (a109) (procedure count
> > ((procedure (a109 #!rest *) *) (list-of a109) #!rest list) fixnum))'
> >
> >  Huh?
> >
> > Regards,
> > Michele
> 
> It seems "count" is defined in srfi-1. Anyway, I found this warning
> intrusive and annoying given I'm not using srfi-1.

I agree that this is annoying. However, I don't think it's worth
pursuing a fix at this point since many (all?) such cases will be
resolved as part of the compiler/core unit modularization; a user's
`(define count 1)` won't collide with a properly module-namespaced
`srfi-1#count`.

Evan



reply via email to

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