[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GOOPS class printing
From: |
Jan Wedekind |
Subject: |
Re: GOOPS class printing |
Date: |
Wed, 23 Feb 2022 21:48:10 +0000 |
User-agent: |
K-9 Mail for Android |
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.