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/

Latest News
Version 1.6.0 of Mxx_ru released
    Nicolay Shmakov - 2013-06-19 12:07
TZInfo v1.0.0 and TZInfo::Data v1.2013.3 Released
    Philip Ross - 2013-06-02 17:12
icalendar 1.4.0 Released
    Ryan Ahearn - 2013-05-21 23:17
BinData 1.5.0 - source moved to github
    Dion Mendel - 2013-05-21 11:10
v13.5.0 Released !!
    id 774 - 2013-05-18 12:28

 

Forums | Admin

Discussion Forums: handling-forward-reference-in-ruby

Start New Thread Start New Thread

 

Topic Topic Starter Replies Last Post