reason for "eval" in net-barchart.scm

Robert Graham Merkel rgmerk@mira.net
Thu, 27 Sep 2001 14:25:51 +1000


Rob, 
    if you have a look at src/app-utils/date-utilities.scm, you'll see
the definitions for "MonthDelta" for example.

Now, the interval selection option generator function
gnc:options-add-interval-choice! in src/report/report-system/options-utilities.scm
creates a multichoice option.

The value returned from an option generated by this function is a symbol 
corresponding to the "deltas" in src/app-utils/date-utilities.scm - not the
actual delta structure itself.

Hence, the use of eval to get the structure from the symbol.

I dunno, how do you want to fix this?
-- 
------------------------------------------------------------
Robert Merkel	                           rgmerk@mira.net

Go You Big Red Fire Engine
-- Unknown Audience Member at Adam Hills standup gig
------------------------------------------------------------