hy/tests/native_tests
Gergely Nagy cbc2eed900
defclass reimagined
defclass now has a new syntax:

 (defclass Name [BaseList]
   [property value
    property value] ;; optional

   (defn method [self]
     self.property))

Anything after the optional property list (which will be translated to a
setv within the class context) will be added to the class body. This
allows one to have side effects and complex expressions within the class
definition.

As a side effect, defining methods is much more friendly now!

Closes #850.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2015-08-04 16:43:07 +02:00
..
2015-08-04 16:43:07 +02:00
2013-03-05 18:39:34 -05:00
2015-08-04 16:43:07 +02:00
2015-08-04 16:43:07 +02:00
2015-08-04 11:59:10 +02:00
2013-12-27 13:50:19 -07:00
2013-12-27 13:50:19 -07:00
2015-08-04 16:43:07 +02:00
2015-08-04 16:43:07 +02:00