This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: scm_smob_print with name
- To: Keisuke Nishida <kxn30 at po dot cwru dot edu>
- Subject: Re: scm_smob_print with name
- From: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Date: Mon, 26 Jun 2000 12:12:20 +0200 (MEST)
- cc: guile at sourceware dot cygnus dot com
On 25 Jun 2000, Keisuke Nishida wrote:
> I know there was a discussion about giving a name to any object
> by setting an object-property `name', so how about this change?
Hmmm... I'm not sure if this is actually a good idea. Since you can
easily extract the name from the scheme level if you really need it, I
would prefer if we wouldn't have this hardcoding of names in guile.
(Personally, I'd even prefer to have the procedure name properties
removed, in order to be able to separate the naming completely, but this
has been discussed before.)
Note: With goops you should be able to write generic display and write
routines for all of your types anyway. Then, you can have the name
property extracted automatically by the corresponding write function.
Best regards
Dirk