snow-deprecated icon indicating copy to clipboard operation
snow-deprecated copied to clipboard

Calling a function with not enough arguments

Open judofyr opened this issue 16 years ago • 1 comments
trafficstars

After playing in ./snow -i I stumbled upon this little weird thing:

yield: { it }
yield()  // nil

yield: [a] { a }
yield()  // -1808504320951916826

yield: [a, b] { @(a, b) }
yield(1) // @(1, -1808504320951916826)

I assume nil is what we want here?

judofyr avatar Jun 15 '09 12:06 judofyr

That is indeed a bug, probably in the codegen. Weird thing is that it's always the same number – maybe it's memory poison.

Prioritizing...

simonask avatar Jun 18 '09 18:06 simonask