Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"define" does not work in class/1 or above #9

Open
takikawa opened this issue Jan 31, 2012 · 2 comments
Open

"define" does not work in class/1 or above #9

takikawa opened this issue Jan 31, 2012 · 2 comments
Labels

Comments

@takikawa
Copy link
Collaborator

The following code fails with an error:

#lang class/1

(define-class point%
  (fields x y)
  (define (move-x dx)
    (new point%
         (+ (send this x) dx)
         (send this y))))

The error is "define-class: There were multiple syntax errors. The first error follows:
expected the identifier `isl+:check-range' in: define"

This is a problem since class/1 and higher are supposed to be supersets of class/0.

@samth
Copy link
Collaborator

samth commented Jan 31, 2012

Right, we haven't propagated changes from class/0 into class/1.

On Mon, Jan 30, 2012 at 10:47 PM, Asumu Takikawa
[email protected]
wrote:

The following code fails with an error:

   #lang class/1

   (define-class point%
     (fields x y)
     (define (move-x dx)
       (new point%
            (+ (send this x) dx)
            (send this y))))

The error is  "define-class: There were multiple syntax errors. The first error follows:
expected the identifier `isl+:check-range' in: define"

This is a problem since class/1 and higher are supposed to be supersets of class/0.


Reply to this email directly or view it on GitHub:
#9

sam th
[email protected]

@takikawa
Copy link
Collaborator Author

I fixed this for class/1 through class/3 for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants