How to convert a CLOS program to COALTON. #1001
Replies: 2 comments
-
If you need to be able to access the objects from outside of Coalton, define them in Lisp first and then import the type to Coalton (Coalton-toplevel If you just want it all in Coalton, use define-struct to make similar objects: Unless you're going to have multiple structs using the same methods, you can just use regular function definitions. If you do want multiple structs/types using the same functions, use define-class to define a typeclass |
Beta Was this translation helpful? Give feedback.
-
There exist a book "The book of Shen". |
Beta Was this translation helpful? Give feedback.
-
I want to change this program to coalton :
Beta Was this translation helpful? Give feedback.
All reactions