SV: 2D or not 2E

"Pavel Grozman" <[email protected]>
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
According to HyperSpec, 5d should not be treated as a symbol,
see 2.3.1.1 Potential Numbers as Tokens.

So is is better to avoid using such names.

Pavel Grozman


> -----Ursprungligt meddelande-----
> Fran: Kenny Tilton [mailto:[email protected]]
> Skickat: den 8 mars 2003 23:24
> Till: [email protected]
> Amne: [cormanlisp] 2D or not 2E
>
>
> FYI (and that is no typo below, the compiler complains "no 5E-H" on a
> reference to 5d-h!!! and the subject above comes from the original code
> in which I named a point structure 2d--got to 5D while experimenting
> with variations):
>
> (defstruct 5d
>    (h 0 :type fixnum)
>    (v 0 :type fixnum)
>    )
> 5D
> (let ((p (make-5d :h 1 :v 2)))
>      (setf (5d-h p) 3))
> ;;; An error occurred in function MACROEXPAND:
> ;;; Error: There is no SETF expansion method defined for (5E-H P)
> ;;; Entering Corman Lisp debug loop.
> ;;; Use :C followed by an option to exit. Type :HELP for help.
> ;;; Restart options:
> ;;; 1   Abort to top level.
> :c 1
>
> ;;; Returning to top level loop.
> (defstruct 5k
>    (h 0 :type fixnum)
>    (v 0 :type fixnum)
>    )
> 5K
> (let ((p (make-5k :h 1 :v 2)))
>      (setf (5k-h p) 3))
> 3
>
> --
>
>   kenny tilton
>   clinisys, inc
>   http://www.tilton-technology.com/
>   ---------------------------------------------------------------
> "Cells let us walk, talk, think, make love and realize
>   the bath water is cold." -- Lorraine Lee Cudmore
>
>
>
>
> To unsubscribe from this group, send an email to:
> [email protected]
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/xaxhjB/hdqFAA/xGHJAA/SyjtlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.