From: Vladimir Zolotykh
Subject: compiler-time side effects of defun
Date: 
Message-ID: <3CFDC532.F54D097D@eurocom.od.ua>
Let me consider

(let ((x 1))
(defun foo () x)
)

(defun bar () (foo))

Compiling this as a file gives me a warning:

'While compiling file the underfined function foo were used'.

If I want foo be known to compiler before processing bar 
what arrangements in ACL61 I should make ? Or at least just
suppress warning if the situation is quite harmless ?

-- 
Vladimir Zolotykh

From: Geoff Summerhayes
Subject: Re: compiler-time side effects of defun
Date: 
Message-ID: <AfpL8.186186$GG6.15433039@news3.calgary.shaw.ca>
"Vladimir Zolotykh" <······@eurocom.od.ua> wrote in message
······················@eurocom.od.ua...
> Let me consider
>
> (let ((x 1))
> (defun foo () x)
> )
>
> (defun bar () (foo))
>
> Compiling this as a file gives me a warning:
>
> 'While compiling file the underfined function foo were used'.
>
> If I want foo be known to compiler before processing bar
> what arrangements in ACL61 I should make ? Or at least just
> suppress warning if the situation is quite harmless ?
>

Why not just wrap it with eval-when?

--
Geoff
From: Vladimir Zolotykh
Subject: Re: compiler-time side effects of defun
Date: 
Message-ID: <3CFE379F.EFB0DBE7@eurocom.od.ua>
Geoff Summerhayes wrote:
> 
> Why not just wrap it with eval-when?

I've tried that and noticed no effect.


-- 
Vladimir Zolotykh