Re: [Chicken-users] set!

2014-02-28 Thread Pedro Henrique Antunes de Oliveira
In scheme, you can understand a variable as holding a reference to a value. In the first case a holds a reference (call it RA) to a cons pair (the car and cdr of the cons pair also hold references to values - in this case I'm calling RA0 the reference to 1, and RA1 the reference to 2). When you fe

Re: [Chicken-users] need to get started

2012-01-15 Thread Pedro Henrique Antunes de Oliveira
No "easy" tutorial on getting started with chicken (as far as I know), but if you mean "getting started with scheme", then there are some books: The Screme Programming Language (3ed), Structure and Interpretation of Computer Programs, The Little Schemer, The Seasoned Schemer. Check out schemers.or

Re: [Chicken-users] Compilation issue with v4.7.0

2011-08-12 Thread Pedro Henrique Antunes de Oliveira
Actually no, page 16 defines that. Take a look at it. Maybe, there are some details there that can help you. On Fri, Aug 12, 2011 at 1:42 PM, Pedro Henrique Antunes de Oliveira wrote: > Maybe, top level execution is undefined. > > I read R5RS once, but not paying total attention, an

Re: [Chicken-users] Compilation issue with v4.7.0

2011-08-12 Thread Pedro Henrique Antunes de Oliveira
Maybe, top level execution is undefined. I read R5RS once, but not paying total attention, and I don't remember it defining how top level execution should work. On Fri, Aug 12, 2011 at 1:40 PM, Paul Colby wrote: > > On Aug 12, 2011, at 9:16 AM, Pedro Henrique Antunes de Oliveira wr

Re: [Chicken-users] Compilation issue with v4.7.0

2011-08-12 Thread Pedro Henrique Antunes de Oliveira
I am not sure why this happens, but once I've heard that TOP LEVEL execution is different from normal execution, inside a lambda expression for example. Try compiling this (let ((A #t) (B 'undefined)) (if A (set! B 'good) (set! B 'bad)) (print B)) It runs as expected. Your

Re: [Chicken-users] About peformance of user defined procedures

2011-08-01 Thread Pedro Henrique Antunes de Oliveira
11 at 2:36 PM, Jörg F. Wittenberger wrote: > just a wild guess: > > On Jul 31 2011, Pedro Henrique Antunes de Oliveira wrote: > >> Hey. >> >> I have a file map.scm, which contais this code: >> >> (define (mymap1 op ls) >>  (let loop ((l

Re: [Chicken-users] About peformance of user defined procedures

2011-07-30 Thread Pedro Henrique Antunes de Oliveira
I've taken a look at compiler macros. I see how it could help with performace, but I don't get how it would help in this case. Could you explain? On Sat, Jul 30, 2011 at 8:51 PM, Kon Lovett wrote: > > On Jul 30, 2011, at 4:43 PM, Pedro Henrique Antunes de Oliveira wrote: > &

[Chicken-users] About peformance of user defined procedures

2011-07-30 Thread Pedro Henrique Antunes de Oliveira
Hey. I have a file map.scm, which contais this code: (define (mymap1 op ls) (let loop ((ls ls) (acc '())) (if (null? ls) (reverse acc) (loop (cdr ls) (cons (op (car ls)) acc) (define (mymap2 op ls) (let loop ((ls ls)) (if (null? ls) '() (cons (op (

Re: [Chicken-users] type extension ("inheritance") and define-record

2011-07-17 Thread Pedro Henrique Antunes de Oliveira
Any reason why that happens? I really liked that idea. On Sun, Jul 17, 2011 at 1:49 PM, Thomas Chust wrote: > if the original record was defined in a different module than the > derived one, setting those binding from the original module to other > values may not be visible to the original modul

[Chicken-users] type extension ("inheritance") and define-record

2011-07-17 Thread Pedro Henrique Antunes de Oliveira
Hey. I've thought about derived types, defined with define-record, having the base type as a field in it. Like in (define-record person name address other-info) (define-record employee company person) The employee type would extend the person type, and the person type information is in the fiel

Re: [Chicken-users] type extension ("inheritance") and define-record

2011-07-17 Thread Pedro Henrique Antunes de Oliveira
Wronge paste. http://pastebin.com/E11Vy5c0 That is the right one. On Sun, Jul 17, 2011 at 12:44 PM, Pedro Henrique Antunes de Oliveira wrote: > http://pastebin.com/fXu1J0iU ___ Chicken-users mailing list Chicken-users@nongnu.org ht

Re: [Chicken-users] What is the charset of the characters of a string literal?

2011-07-16 Thread Pedro Henrique Antunes de Oliveira
;t need to know the charset of the file. On Sat, Jul 16, 2011 at 11:13 PM, John Cowan wrote: > Pedro Henrique Antunes de Oliveira scripsit: > >> What is the charset of the characters of a string literal? >> >> Is it the source file's charset? > > Yes, bu

[Chicken-users] What is the charset of the characters of a string literal?

2011-07-16 Thread Pedro Henrique Antunes de Oliveira
What is the charset of the characters of a string literal? Is it the source file's charset? ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users