unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mikael Djurfeldt <djurfeldt@nada.kth.se>
Cc: Rob Browning <rlb@defaultvalue.org>
Subject: Re: New module system option :duplicates
Date: Tue, 11 Mar 2003 15:47:31 +0100	[thread overview]
Message-ID: <xy7k7f6rmd8.fsf@nada.kth.se> (raw)
In-Reply-To: <rmid6kyasdz.fsf@fnord.ir.bbn.com> (Greg Troxel's message of "11 Mar 2003 09:29:28 -0500")

Greg Troxel <gdt@ir.bbn.com> writes:

> That merging independent implementations works is either an
> accident, or the result of the special case of non-overlapping
> specifiers.

Still, I'm very curious how this plays out in practise.

Your argument can be made regarding the old goops implementation when
two different modules specializes the same imported GF.  Yet, with
disciplined use (see Kiczales paper; I've tried to follow those rules
in my own implementations), it appears to me that this works well in
practise.

And, again, :merge-accessors should be completely safe to use.

>   However, when the X window is redisplayed and all objects need to be
>   redrawn, the update function in the (graphics object) package calls
>   `draw' on each <graphics-object> on the list of visible objects.  This
>   may include our <picture> object, so it is essential that draw in
>   (graphics object) shares the (draw <picture>) method with draw in
>   (graphics object picture).
>
> The draw GF is invoked on a <picture>, which finds the method
> specialized to (graphics object picture).  This method was defined in
> (graphics object picture), and thus there is no need for the (g o)
> draw definition to find the draw of (graphics picture).  This method
> is in the new module.

I think you're missing something here.  If the draw method for
<picture>:s hasn't been added to the generic function draw in
(graphics object), that module can't redraw the display.

> This raises an interesting issue.  There is a difference between
> extending a defined interface and using a modules provided
> abstractions.  In your restructured example, the output device exports
> draw, and presumably the low level functions that actualy let you draw
> bits on the screen.
> It would be nice for that export of draw to be marked in such a way
> that the exported GF may be modified by adding methods.

Yes.  I think there is such a facility in Dylan.  We could maybe use
something similar.

M


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2003-03-11 14:47 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-07 13:19 New module system option :duplicates Mikael Djurfeldt
2003-03-07 14:28 ` tomas
2003-03-07 14:49 ` Marius Vollmer
2003-03-07 15:08   ` Mikael Djurfeldt
2003-03-07 15:28     ` Marius Vollmer
2003-03-07 16:56       ` Rob Browning
2003-03-08 14:38         ` Greg Troxel
2003-03-10 23:39           ` Mikael Djurfeldt
2003-03-11 12:12           ` Mikael Djurfeldt
2003-03-11 12:21             ` Mikael Djurfeldt
2003-03-11 14:29             ` Greg Troxel
2003-03-11 14:47               ` Mikael Djurfeldt [this message]
2003-03-10 23:18   ` Mikael Djurfeldt
2003-03-12 15:05     ` Marius Vollmer
2003-03-12 15:18       ` Mikael Djurfeldt
2003-03-12 16:34         ` Marius Vollmer
2003-03-07 16:30 ` Rob Browning
2003-03-10 23:38   ` Mikael Djurfeldt
2003-03-11  0:14     ` Rob Browning
2003-03-11 10:32       ` Mikael Djurfeldt
2003-03-11 10:50       ` Mikael Djurfeldt

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=xy7k7f6rmd8.fsf@nada.kth.se \
    --to=djurfeldt@nada.kth.se \
    --cc=rlb@defaultvalue.org \
    /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).