Re: defining self-evaluating objects

Liste des GroupesRevenir à cl scheme 
Sujet : Re: defining self-evaluating objects
De : HenHanna (at) *nospam* dev.null (HenHanna)
Groupes : comp.lang.lisp comp.lang.scheme
Date : 21. Oct 2024, 23:36:08
Autres entêtes
Organisation : novaBBS
Message-ID : <245b3f586d6d45b8d64786399ec4d3f5@www.novabbs.com>
References : 1 2
User-Agent : Rocksolid Light
On Thu, 13 Apr 2023 1:15:33 +0000, Tom Russ wrote:

On Wednesday, April 12, 2023 at 9:41:10 AM UTC-7, James Cloos wrote:
does cl support defining new self-evaluating objects
(other than keywords)?
>
if so, how?
>
What sort of "defining" did you have in mind.
One simple answer (for symbols) would be:
(defconstant foo 'foo)
>
There may be other things you could do via reader macros.
One example of that is https://github.com/lispm/measures [*], which
defined
numbers with dimensions and optional reader macros so that something
like
35km or 18m/s2 would evaluate to equivalent objects, although not in an
EQ sense.
>
>
>
[* Software by Rainer Joswig that I extended while at ISI]
   Do we have  Defconstant  in Scheme ???

Date Sujet#  Auteur
21 Oct 24 o Re: defining self-evaluating objects1HenHanna

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal