dyoo / moby-scheme

The Moby Scheme Compiler for Smartphones
http://world.cs.brown.edu/
53 stars 8 forks source link

make-vector should take an optional second argument #50

Closed dyoo closed 14 years ago

dyoo commented 15 years ago

from Jonathan Sailor:

A student pointed out that, in ASL, make-vector can be used as:

(check-expect (make-vector 4) (vector 0 0 0 0)) (check-expect (make-vector 4 2) (vector 2 2 2 2))

but the two-argument form of make-vector is a compile-time error in Moby.

If Moby is unhappy with multi-arg (but arbitrarly-many arg) functions, we're more than able to just doc it that way. :-)

dyoo commented 14 years ago

fixed in 28072c479b7733b3d8bcc4b61c3ffeb8cac45575