unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* module system / (oop goops) / :duplicates (merge-generics) / bug?
@ 2011-07-05 21:32 David Pirotte
  2011-07-06 16:17 ` Ludovic Courtès
  0 siblings, 1 reply; 18+ messages in thread
From: David Pirotte @ 2011-07-05 21:32 UTC (permalink / raw)
  To: bug-guile

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

Hello,

Can someone kindly look at this small example and tell me what's wrong? I get this

	david@rascar:~ 8 $ guile
	GNU Guile 2.0.0.160-39be
	...
	scheme@(guile-user)> (use-modules (mg-3))
	(letstry)

	mg-3.scm:17:2: In procedure letstry:
	mg-3.scm:17:2: In procedure module-lookup: Unbound variable: dialog

	Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
	

Many thanks,
David

ps:	sometimes guile does not 'comeback from an error' with a prompt
	invitation, like in my case here above: the guile-prompt only come back
	after I enter something, like ,q in this case.


[-- Attachment #2: mg-1.scm --]
[-- Type: text/x-scheme, Size: 232 bytes --]


(define-module (mg-1)
  :use-module (oop goops)

  :duplicates (merge-generics)

  :export (<widget-a>
	    dialog
	    ))



(define-class <widget-a> ()
  (dialog :accessor dialog :init-keyword :dialog :init-value 'dialog-a)
  )


[-- Attachment #3: mg-2.scm --]
[-- Type: text/x-scheme, Size: 233 bytes --]


(define-module (mg-2)
  :use-module (oop goops)

  :duplicates (merge-generics)

  :export (<widget-b>
	    dialog
	    ))



(define-class <widget-b> ()
  (dialog :accessor dialog :init-keyword :dialog :init-value 'dialog-b)
  )



[-- Attachment #4: mg-3.scm --]
[-- Type: text/x-scheme, Size: 399 bytes --]


(define-module (mg-3)
  :use-module (oop goops)
  :use-module (mg-1)
  :use-module (mg-2)

  :duplicates (merge-generics)

  :export (a
	   b
	   letstry))


(define a (make <widget-a>))
(define b (make <widget-b>))

(define (letstry)
  (dialog a)
  (dialog b))


#!

(use-modules (macros push))
(push! "/usr/local/share/guile/alto/2.0/tests"
       %load-path)

(use-modules (mg-3))
(letstry)

!#

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

end of thread, other threads:[~2011-09-06 15:41 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-05 21:32 module system / (oop goops) / :duplicates (merge-generics) / bug? David Pirotte
2011-07-06 16:17 ` Ludovic Courtès
2011-07-06 19:22   ` David Pirotte
2011-07-07 11:37     ` Andy Wingo
2011-07-07 16:26       ` David Pirotte
2011-07-07 20:59         ` Andy Wingo
2011-07-08 17:05           ` David Pirotte
2011-07-09 10:02             ` Andy Wingo
2011-07-09 15:08               ` David Pirotte
2011-07-11 15:49                 ` Andy Wingo
2011-07-12  1:25                   ` David Pirotte
2011-08-18 11:01                     ` Andy Wingo
2011-08-19  5:40                       ` David Pirotte
2011-08-29 17:05                         ` David Pirotte
2011-08-30  2:56                           ` David Pirotte
2011-09-02 11:26                           ` Andy Wingo
2011-09-06 15:41                             ` David Pirotte
2011-08-03 12:28                   ` David Pirotte

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