Re: [Chicken-users] Can't import iup-web
On Mon, 2012-03-12 at 14:05 -0600, Matt Gushee wrote: > [...] > > $ csi > > [...] > > csi> (use iup) > > [...] > > csi> (use iup-web) > > ; loading /usr/lib/chicken/6/iup-web.import.scm ... > > [...] Hello, you are using the egg incorrectly. The iup library contains all the iup-related modules including iup-web. After you have run a (require-library iup), which you did implicitly by running (use iup), you only have to (import iup-web) to get access to the iup-web functionality, if it is compiled in. The output of csi shows that this import works since iup-web.import.scm is loaded successfully. But the (require-library iup-web) that you are implicitly running fails because no such library exists. Ciao, Thomas -- When C++ is your hammer, every problem looks like your thumb. ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Regexp egg compilation error
Hi Arthur, On Tue, 13 Mar 2012 00:54:53 -0300 Arthur Maciel wrote: > Well, now it I get another question: does awful egg accepts irregex syntax > instead of regex egg one? The documentation still suggests the use of regex > egg. Both regex and irregex should work. Here's an example: (use awful irregex) (define-page (irregex '(seq "/foo/" (+ numeric))) (lambda (path) path)) http://:/foo/4 displays `/foo/4' http://:/foo/bar produces a 404 error Thanks for pointing that omission in the documentation. I'm gonna fix that. Best wishes. Mario -- http://parenteses.org/mario ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Can't import iup-web
On Tue, Mar 13, 2012, at 12:41 PM, Thomas Chust wrote: > On Mon, 2012-03-12 at 14:05 -0600, Matt Gushee wrote: > > [...] > > > $ csi > > > [...] > > > csi> (use iup) > > > [...] > > > csi> (use iup-web) > > > ; loading /usr/lib/chicken/6/iup-web.import.scm ... > > > [...] > > you are using the egg incorrectly. The iup library contains all the > iup-related modules including iup-web. After you have run a > (require-library iup), which you did implicitly by running (use iup), > you only have to (import iup-web) to get access to the iup-web > functionality, if it is compiled in. I see. Thanks for the info! Evidently the tutorial needs to be updated, because I first encountered the error when trying to use the example code I found there. -- Matt Gushee m...@gushee.net ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Regexp egg compilation error
Thank you, guys! 2012/3/13 Mario Domenech Goulart > Hi Arthur, > > On Tue, 13 Mar 2012 00:54:53 -0300 Arthur Maciel > wrote: > > > Well, now it I get another question: does awful egg accepts irregex > syntax > > instead of regex egg one? The documentation still suggests the use of > regex > > egg. > > Both regex and irregex should work. Here's an example: > > (use awful irregex) > > (define-page (irregex '(seq "/foo/" (+ numeric))) >(lambda (path) > path)) > > > http://:/foo/4 displays `/foo/4' > http://:/foo/bar produces a 404 error > > > Thanks for pointing that omission in the documentation. I'm gonna fix > that. > > > Best wishes. > Mario > -- > http://parenteses.org/mario > ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users