unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* namespace of goops module
@ 2006-02-14 17:14 William Xu
  2006-02-14 21:12 ` Clinton Ebadi
  2006-02-14 22:43 ` Neil Jerram
  0 siblings, 2 replies; 7+ messages in thread
From: William Xu @ 2006-02-14 17:14 UTC (permalink / raw)


Hi people there, 

I try to learn GOOP today. As i don't want to mess with name conficts, i
decided to add a prefix while using any modules. Thus to load GOOPS, 

guile> (use-modules ((oop goops) :renamer (symbol-prefix-proc 'oop/goops:)))

This seems okay. While, when i try the first example in GOOPS Info, 

guile> (oop/goops:define-method (+ (x <string>) (y <string>))
       (string-append x y))
<unnamed port>: In expression (add-method! + (method # #)):
<unnamed port>: Unbound variable: add-method!
ABORT: (unbound-variable)

Type "(backtrace)" to get more information or "(debug)" to enter the debugger.
guile> 

Seems i can't add a renamer for goops module, but make it available on
top-level? While, GOOPS is not built in guile, is it?

So what's the point here?

-- 
William


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


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

end of thread, other threads:[~2006-02-15 22:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-14 17:14 namespace of goops module William Xu
2006-02-14 21:12 ` Clinton Ebadi
2006-02-15  2:02   ` William Xu
2006-02-15 11:39     ` Andy Wingo
2006-02-15 15:42       ` William Xu
2006-02-14 22:43 ` Neil Jerram
2006-02-15 22:22   ` Kevin Ryde

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