unofficial mirror of 
 help / color / mirror / Atom feed
* GOOPS and <slot> subclass
@ 2023-07-11 15:48 Edoardo Putti
  0 siblings, 0 replies; only message in thread
From: Edoardo Putti @ 2023-07-11 15:48 UTC (permalink / raw)
  To: guile-user

Hello all,

I'm taking a look at CLOS examples and most extend the <slot> class to
add the behavior they need.
Consider this example from json-mop [0] where the author wants to add
two fields to the slot.

After this is done they wire up the new slot class definition to be
used by all classes that have
json-serializable-class as the metaclass [1]. This makes sure that the
new slot class will be used
when required.

I have started reading about GOOPS but it's not very explicit on if
this pattern is possible or if there is
an equivalent one. Is there an example of using the GOOPS to implement
such a library?

Have a nice day!



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-11 15:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-11 15:48 GOOPS and <slot> subclass Edoardo Putti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).