[Openmcl-devel] Annoying, Deprecated #\, Macros

Brent Fulgham bfulg at pacbell.net
Sun Oct 8 23:23:22 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Oct 8, 2006, at 10:55 PM, Gary Byers wrote:

> Most (probably all, I can't think of an exception) uses of #, in
> legacy code can be replaced with LOAD-TIME-VALUE, as in:
>
> (defun gen-name ( &optional k &aux (n (load-time-value (*array nil  
> 'fixnum 1))))
>  ;; I hope that's right.
>   ...)
>
> I think that that observation was what led to the demise of #, all  
> those
> years ago.  LOAD-TIME-VALUE's behavior is better-defined than #,'s  
> was,
> but the cases where either is necessary and the issues related to why
> LOAD-TIME-VALUE is "better" are all pretty obscure.

Thanks.  That works fine, though someone with a real maclisp machine  
would have to confirm the resulting code actually does what it  
should!  :-)

- -Brent

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFKerazGDdrzfvUpURAhAEAKCwJK+cBEIjYNkpuMqd++RBii7X/QCfWghf
05UoDpc1Wy6ExzASrd3RVaA=
=2qqs
-----END PGP SIGNATURE-----



More information about the Openmcl-devel mailing list