Posted By: David Anderson
Date: 2007-05-19 10:35
Summary: Handling Forward Reference in Ruby
Project: Chunks of Ruby Infrastructure
While doing some DSL work, I found myself with forward referencing problems. I needed to be able to create structures that used information that wasn't yet available. I took a step back and designed a forward reference capture and resolution framework that let me keep my DSL work clean and didn't choke when things are used before they're defined.
I wrote a description of the system and uploaded the code to rubyforge as part of the 0.1.1 release of my eymiha_util rubygem - you can get the paper at http://www.geocities.com/eymiha/papers/HandlingForwardReferenceInRuby.html or download the software at http://rubyforge.org/projects/cori/ |
|