From: MikkelFJ Date: 2002-12-01T09:01:07+09:00 Subject: Re: Numerical Ruby "MikkelFJ" wrote in message news:3de94bd0$0$47406$edfadb0f@dtext01.news.tele.dk... > Is there any way you could use Ruby to implement a symbolic evaluation > instead of an explicit evaluation? In my long tradition of replying to myself, one could imagine something like the following: class SymScalar attr_reader :var def initialize name @var = name end def + a puts "#{@var} + #{a.var};" end end sx = SymScalar.new "x" sy = SymScalar.new "y" sx + sy ==> x + y; Mikkel