unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: David Pirotte <david@altosw.be>
To: Brent Pinkney <brp@4dst.com>
Cc: guile-devel@gnu.org
Subject: Re: Help required with exporting and using GOOP generics
Date: Thu, 14 Mar 2013 15:27:42 -0300	[thread overview]
Message-ID: <20130314152742.0c730e70@capac> (raw)
In-Reply-To: <5141AC8F.8030407@4dst.com>

Hello Brent,

Please send the code, i'll look at it asap.

I am precisely in a discussion with developers about goops and the way the guile
module system interferes with it, since i also believe that there is a serious
problem indeed: and not 'just' because there is no way to ask goops 'stuff' to land
in a single module, but because if you don't do the right [counter intuitive] thing
then export actually exports single class capable accessors and methods instead of
the generic.

Anyway, please send your code, because there is a way to make it run, it's just a
matter of you understanding how and i'll do my best to help you.

Cheers,
David

;; --

Le Thu, 14 Mar 2013 12:55:11 +0200,
Brent Pinkney <brp@4dst.com> a écrit :

> Hello,
> 
> I am having serious problems exporting generics from subclasses of 
> <object> and then using them in other modules.
> I have trawled the logs and tried every combination I can thing of.
> 
> I have tried creating a common base class <thing> for all my classes and 
> defining the methods there, I have tried exporting generics, and I have 
> even tried every combination of #:duplicates (merge-generics, first, 
> last. etc.).
> 
> I can sometimes make some progress but eventually I grind to a halt - 
> often with spurious error messages saying that "format" and "for-each" 
> are not memoized.
> 
> I am also quite willing to rework my code to fit guile - I just need 
> some help on how to proceed.
> 
> Basically I would like a class hierarchy.
> 
>      Module            Class
> -------------------------------------
>                          <object>
> (brent thing)            <thing>          ; optional - let me know
>                               id name name!
> (brent foo)             <foo>
>                              ; redefines from <thing>
>                              id name name!
> "same file"            <bar>
>                              ; uses thing.name!
> (brent baz)            <baz>
>                              ; redefines from <thing>
>                              name name!
> 
> I would then like a common module (brent main) to import (brent thing) 
> (brent foo) and (brent baz) and then merrily create and use these classes.
> 
> 
> Please can someone provide me with the recipe that will solve the above 
> and also scale to a proper large system.
> 
> (I have test code - if required)
> 
> Thanks
> 
> Brent
> 
> 



  reply	other threads:[~2013-03-14 18:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-14 10:55 Help required with exporting and using GOOP generics Brent Pinkney
2013-03-14 18:27 ` David Pirotte [this message]
2013-03-14 21:42 ` Mark H Weaver
2013-03-15  0:11   ` dsmich
2013-03-15 20:57     ` Brent Pinkney
2013-03-15 21:05       ` Mark H Weaver
2013-03-15 21:45       ` Mark H Weaver

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=20130314152742.0c730e70@capac \
    --to=david@altosw.be \
    --cc=brp@4dst.com \
    --cc=guile-devel@gnu.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).