unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Help required with exporting and using GOOP generics
@ 2013-03-14 10:55 Brent Pinkney
  2013-03-14 18:27 ` David Pirotte
  2013-03-14 21:42 ` Mark H Weaver
  0 siblings, 2 replies; 7+ messages in thread
From: Brent Pinkney @ 2013-03-14 10:55 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 1582 bytes --]

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



[-- Attachment #2: Type: text/html, Size: 2447 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-03-15 21:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-14 10:55 Help required with exporting and using GOOP generics Brent Pinkney
2013-03-14 18:27 ` David Pirotte
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

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).