Re: Variable never used...

Jason S Cornez <[email protected]> Fri, 28 Jan 2005 16:53:25 +0100
Newsgroups gmane.lisp.allegro
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well, this function:

~  (defun test ()
~    10)

does the exact same thing and has no need for X.  The compiler is
just telling you that nothing ever uses X, which usually indicates
that you aren't doing something you intended.

What exactly are you intending to do?
- -Jason

P.S.  Your original function would be more properly formatted as:

~  (defun test ()
~    (let ((x 0))
~      (setq x 10)))

Paulo Dias wrote:
| I'm geting this warning...
|
|  Variable never X used....
|
|
| (defun test ( )
|   (let ( (X 0) )
|      (setq X 10)
|   )
| )
|
| Can someone help me...
|
| Thanks in advance
|
| Paulo Dias

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB+l/1Qlm6HDTMLyMRApprAJ9xQ3TqfHguIb4vUK9VRRgPTeZGJwCfTVm+
LutGDj+nm1D+R4fmEi/FDSw=
=RcAB
-----END PGP SIGNATURE-----