This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: scm_smob_print with name


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]