From xemacs-m  Wed May 14 04:41:34 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id EAA06749
	for <xemacs-beta@xemacs.org>; Wed, 14 May 1997 04:41:33 -0500 (CDT)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id LAA27358; Wed, 14 May 1997 11:40:42 +0200 (MET DST)
To: Per Abrahamsen <abraham@dina.kvl.dk>
Cc: XEmacs Developers <xemacs-beta@xemacs.org>, daveg@synaptics.com
Subject: Re: Byte-compiler warning
References: <kig3errdp5u.fsf@jagor.srce.hr> <86u3k76no7.fsf@kramer.in.aventail.com> <m2k9l33u0g.fsf@altair.xemacs.org> <kigyb9jc8pa.fsf@jagor.srce.hr> <rjenbacs7q.fsf@zuse.dina.kvl.dk>
X-Save-Project-Gutenberg: <URL:http://www.promo.net/pg/nl/pgny_nov96.html>
X-Attribution: Hrv
X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/<W*SMo/Mv:58:*_y~ki>xDi&N7XG
        KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&<qQ>Ff%x_>1`T(+M2Gg/fgndU%k*ft
        [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 14 May 1997 11:40:41 +0200
In-Reply-To: Per Abrahamsen's message of 14 May 1997 11:34:33 +0200
Message-ID: <kigvi4mbdd2.fsf@jagor.srce.hr>
Lines: 32
X-Mailer: Gnus v5.4.52/XEmacs 19.15

Per Abrahamsen <abraham@dina.kvl.dk> writes:

> Hrvoje Niksic <hniksic@srce.hr> writes:
> 
> > They are byte-compiled correctly (my code works), the trouble is
> > that cl.el generates code which does something like:
> > 
> > (setq :id ':id)
> 
> Maybe cl.el could be modified to emit code like
> 
> 	(or (boundp ':id) (setq :id ':id))

You are underestimating the byte-compiler. :-(

(byte-compile (lambda ()
                (setq :id ':id)))
  =>  ** Variable reference to constant :id

(byte-compile (lambda ()
                (or (boundp ':id)
                    (setq :id ':id))))
  =>   ** Variable reference to constant :id

Maybe our wonderworker Dave has an idea what could be done regarding
this?

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
4.  Thou shalt not warlorde a sig if it bee the sig of Kibo, nor if
    it bee the sig of the Inner Circle.

