unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Jan Wedekind <jan@wedesoft.de>
To: guile-user@gnu.org, Mike Gran <spk121@yahoo.com>
Subject: Re: GOOPS class printing
Date: Wed, 23 Feb 2022 21:48:10 +0000	[thread overview]
Message-ID: <A8A4FC75-A177-44F2-9FDF-B9B44A788607@wedesoft.de> (raw)
In-Reply-To: <Yhaqls3Dj1k2r7dA@spikycactus.com>

You can define the write and display methods for a metaclass. Also see my article on inspection and metaclasses:

https://www.wedesoft.de/software/2014/03/02/oop-with-goops/

Kind regards
Jan

On 23 February 2022 21:43:50 GMT, Mike Gran <spk121@yahoo.com> wrote:
>Hello all-
>
>If I define a GOOPS class like so...
>
>   (use-modules (oop goops))
>   (define-class <foo> ())
>   <foo>
>   
>When it is printed, it has a long hex string in it
>
>    $2 = #<<class> <foo> 7fa3d9a5bc80>
>
>Is there a way to change how a class prints itself so that
>it does not have a hex string?  So that it is just
>
>   #<<class> <foo>>
>
>or something similar?
>
>Thanks,
>Mike Gran
>
>

-- 
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.


  reply	other threads:[~2022-02-23 21:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Yhaqls3Dj1k2r7dA.ref@spikycactus.com>
2022-02-23 21:43 ` GOOPS class printing Mike Gran
2022-02-23 21:48   ` Jan Wedekind [this message]
2022-02-23 21:55   ` [EXT] " Thompson, David

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A8A4FC75-A177-44F2-9FDF-B9B44A788607@wedesoft.de \
    --to=jan@wedesoft.de \
    --cc=guile-user@gnu.org \
    --cc=spk121@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).