<ArneBab>for spk121: you can eval wisp-scheme-read-file, i.e. (primitive-eval (cons 'begin (wisp-scheme-read-file "examples/enter-three-witches.w"))) <rekado>I’m playing with goops and I wonder how I can ensure that a class instance only accepts certain values for its slots. <rekado>The acceptable values are defined as an enumeration <rekado>I tried adding a “setter” method, but whenever I invoke the enumeration predicate I cannot load the file. <rekado>(the error message is unreadable macro expansion gibberish) <rekado>(define-method ((setter diet) (instance <species>) new-val) <rekado> (slot-set! instance 'diet (<diet> new-val))) <rekado>it looks like (<diet> new-val) is evaluated at definition time, but I really want it to use the *value* of “new-val” instead of taking “new-val” to be a symbol that should be checked with the <diet> predicate. <rekado>The problem is that it’s a “predicate macro”, not a regular function predicate. <rekado>I now use “make-enumeration” and “enum-set-member?” directly. <Labu>in NetBSD guile is in /usr/pkg/bin <Labu>I could use /usr/bin/env guile but I get an error: "env: guile -e main -s No such file or directory" <Labu>Do you know a workaround ? <janneke>Labu: i think the manual in unfortunate in this respect <janneke>you need to use the second insert/example with <ArneBab>Labu: essentially write a shell script which calls <ArneBab>Labu: the reason for your problem is that unix treats everything after the first space in the hashbang as one argument, and env cannot find guile -s ... <Labu>janneke: I tried this too <ArneBab>Labu: glad to :-) — it’s one of the really cool tricks with Guile. It works because #! starts an inline comment, and !# ends it. <ArneBab>that merges hashbang and scheme into something which is bigger than its parts. <Labu>indeed ArneBab, I was just reading it when you answer me <spk121>yeah. checked the log this morning ***ayys_ is now known as ayys
***ayys_ is now known as ayys
<mwette>hi all; been working to learn glib dbus -- back later