From: Mark Probert Date: 2002-12-08T04:56:17+09:00 Subject: Re: [ANN] ratlast 0.1 -- embedded FORTH in Ruby Hi, Neil, At 03:56 AM 12/8/2002 +0900, you wrote: >Mark >Getting bounces... anyway Me, too. Thanks for the post. >Ruby-1.6.8 woks fine with your CFLAGS >Ruby-1.7.3 (2002-12-04) [i686-linux] produces a Makefile line > >CFLAGS = -fPIC -g -O2-Wall -fwritable-strings -DALIGNMENT -DEXPORT If you put the lines: $CFLAGS << " -DALIGNMENT -DEXPORT" if Config::CONFIG["CC"] =~ /gcc/ $CFLAGS += " -Wall -fwritable-strings" end into extconf.rb then it should make okay. It did under cygwin though I have yet to check it against linux (later today, if I get the time). I almost have ratlast 0.2 ready to release. This adds a number of control and performance items, like breaking loops, memory stats for the interpreter, and so on. Also, I plan on having Atlast#eval return the first element in the capture array so you could do something like: t = Atlast.new n = t.eval("342 406 gcd .") puts "gcd = #{n}" Regards, -mark.