Bill Schottstaedt wrote:
map does not accept no list:
But it does accept the empty list, which is what I intended to say, but
didn't make clear.
guile> (map (lambda (a) a))
Backtrace:
In standard input:
1: 0* [map #]
standard input:1:1: In procedure map in expression (map (lambda # a)):
2008/9/19 Bill Schottstaedt <[EMAIL PROTECTED]>:
> I thought it odd that:
>
> guile> (string-length "")
> 0
> guile> (string-ref "" 3)
> #\nul
>
> but:
>
> guile> (string-set! "" 123 #\a)
> guile> (string-ref "" 123)
> #\a
Those _do_ look dangerous. I'll take a look...
> guile> (substring "" 123
2008/9/19 Bill Schottstaedt <[EMAIL PROTECTED]>:
> map does not accept no list:
>
> guile> (map (lambda (a) a))
>
> Backtrace:
> In standard input:
> 1: 0* [map #]
>
> standard input:1:1: In procedure map in expression (map (lambda # a)):
> standard input:1:1: Wrong number of arguments to #
> ABO
2008/9/19 Jon Wilson <[EMAIL PROTECTED]>:
> Here's a different way to think about it that makes the (<) case, as well as
> perhaps (< 2 1 "hi"), make sense quite naturally. [...]
Thanks everyone for discussing these cases. It seems to me that
although it may seem curious, Guile's current behavior
Hi...
2008/9/19 tantalum <[EMAIL PROTECTED]>:
> hi
>
> having dependencies
> gmp 4.2.2-2
> libtool 2.2.6a-1
> installed and 64bit linux,
> im trying to compile guile 1.8.5, but it fails leaving the message found
> here:
> http://pastebin.com/m3bd2e879
> "Speicherzugriffsfehler" translates to "segm
according to r5rs.html, these should signal an error, I believe:
guile> (string-set! (symbol->string 'immutable)
0
#\?)
guile> (define (g) "***")
guile> (string-set! (g) 0 #\?)
guile> (g)
"?**"
I thought it odd that:
guile> (string-length "")
0
guile> (string-ref "" 3)
#\nul
but:
guile> (string-set! "" 123 #\a)
guile> (string-ref "" 123)
#\a
guile> (substring "" 123 124)
Backtrace:
In standard input:
6: 0* [substring "" {123} 124]
standard input:6:1: In procedure substring in expr
hi
having dependencies
gmp 4.2.2-2
libtool 2.2.6a-1
installed and 64bit linux,
im trying to compile guile 1.8.5, but it fails leaving the message found
here:
http://pastebin.com/m3bd2e879
"Speicherzugriffsfehler" translates to "segmentation fault"
this happens also with the git version.
im cl
map does not accept no list:
guile> (map (lambda (a) a))
Backtrace:
In standard input:
1: 0* [map #]
standard input:1:1: In procedure map in expression (map (lambda # a)):
standard input:1:1: Wrong number of arguments to #
ABORT: (wrong-number-of-args)
+ and * have a "natural" identity (0 a