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
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
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
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
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
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
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:
>
&
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 (
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
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
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
;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
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
13 matches
Mail list logo