scheme - define-type returning error on DrScheme -


When I try to run a defined type on the dosim, I get an error for an identifier "before its definition" Is: defined-type ". Why is this happening?

I input:

  (defined type GUI [label (text string?)] [Button (text string?) (Enabled? Boolean?)]  

and returns to me:

Before its definition, reference to an identifier: defined-type

Defined-type is not part of the "basic" plan, it is a part of "typed scheme." To use this language in the DR scheme To:

Ensure that "modi In the bottom window, enter:

  #lang type-scheme  

and "run" in the bottom left of the window. "Press the button.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -