[plt-scheme] [plai] bug with mutator?

From: Eric Tanter (etanter at dcc.uchile.cl)
Date: Mon May 24 19:59:01 EDT 2010

Hi,

#lang plai
(define-type A (a (x number?)))

> (set-a-x! (a 10) 1)
. . procedure set-a-x!: expects 1 argument, given 2: (a 10) 1

how can the mutator expect only one argument?

even stranger:
> (set-a-x! (a 10))
. . #<procedure>: expects 2 arguments, given 1: (a 10)

is that a bug?

Thanks,

-- Éric




Posted on the users mailing list.