<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,14 +1,30 @@
 
+def __new_class_object(size)
+  ob = malloc(size)
+  %s(assign (index ob 0) Class)
+  ob
+end
+
+class Class
+  def new
+    ob = malloc(4)
+    %s(assign (index ob 0) self)
+    ob
+  end
+end
+
 class Foo
 
   def bar
     puts(&quot;test&quot;)
   end
-end
 
-def test
-  f = Foo.new
-  f.bar
+  def hello
+    puts(&quot;Hello World!&quot;)
+  end
 end
 
-test
+%s(let (f) 
+  (assign f (callm Foo new))
+  (callm f bar)
+)</diff>
      <filename>examples/class.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dfaae977be7fe611e816fb05273edf99d5e3c5f5</id>
    </parent>
  </parents>
  <author>
    <name>Vidar Hokstad</name>
    <email>vidar@hokstad.com</email>
  </author>
  <url>http://github.com/vidarh/writing-a-compiler-in-ruby/commit/d946d9b8d6248bad06fbb936f0c8d5a860df0102</url>
  <id>d946d9b8d6248bad06fbb936f0c8d5a860df0102</id>
  <committed-date>2009-02-27T14:31:33-08:00</committed-date>
  <authored-date>2009-02-27T14:31:33-08:00</authored-date>
  <message>Object model example, including part of the boostrap code</message>
  <tree>52d6e5b23444cdf066272448c0b417fda3d97ceb</tree>
  <committer>
    <name>Vidar Hokstad</name>
    <email>vidar@hokstad.com</email>
  </committer>
</commit>
