<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -194,6 +194,22 @@ static void finalize_slots_definition(class_t* klass,
                               accessor);
           dfsch_define_method(env, value, method);
           
+        } else if(dfsch_compare_symbol(keyword, &quot;reader&quot;)){
+          dfsch_object_t* accessor = 
+            dfsch__make_slot_reader_for_slot(klass, slot);
+          dfsch_method_t* method = 
+            dfsch_make_method(accessor, NULL, dfsch_cons(klass, NULL), 
+                              accessor);
+          dfsch_define_method(env, value, method);
+          
+        } else if(dfsch_compare_symbol(keyword, &quot;write&quot;)){
+          dfsch_object_t* accessor = 
+            dfsch__make_slot_writer_for_slot(klass, slot);
+          dfsch_method_t* method = 
+            dfsch_make_method(accessor, NULL, dfsch_cons(klass, NULL), 
+                              accessor);
+          dfsch_define_method(env, value, method);
+          
         } else if(dfsch_compare_symbol(keyword, &quot;initform&quot;)){
           klass-&gt;initvalues = dfsch_cons(dfsch_list(2, 
                                                     dfsch_eval(value, env), </diff>
      <filename>src/object.c</filename>
    </modified>
    <modified>
      <diff>@@ -359,7 +359,7 @@ static dfsch_object_t* slot_writer_apply(slot_accessor_t* sa,
   dfsch_object_t* instance;
   dfsch_object_t* value;
   DFSCH_OBJECT_ARG(args, instance);
-  DFSCH_OBJECT_ARG(args, value, DFSCH_INVALID_OBJECT);
+  DFSCH_OBJECT_ARG(args, value);
   DFSCH_ARG_END(args);
 
   instance = DFSCH_ASSERT_INSTANCE(instance, sa-&gt;instance_class);</diff>
      <filename>src/types.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>eace1291850f274f80976e5dec6d2be17ab4f401</id>
    </parent>
  </parents>
  <author>
    <name>Ales Hakl</name>
    <email>ales@hakl.net</email>
  </author>
  <url>http://github.com/adh/dfsch/commit/0f97a9517a34bf13ce5d80f9e1f75d2ded5d956f</url>
  <id>0f97a9517a34bf13ce5d80f9e1f75d2ded5d956f</id>
  <committed-date>2009-11-15T18:12:31-08:00</committed-date>
  <authored-date>2009-11-15T18:12:31-08:00</authored-date>
  <message>allow definition of reader and writer methods in define-class</message>
  <tree>23ed4892ed7a57ad02dfbf7f7394eacadf9d5df2</tree>
  <committer>
    <name>Ales Hakl</name>
    <email>ales@hakl.net</email>
  </committer>
</commit>
