From f5dc857354532f44dd00a4923ac789378e37b450 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Fri, 22 May 2009 06:56:34 -0700 Subject: [PATCH] found bug in ruby code --- rorg.org | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/rorg.org b/rorg.org index 9aeaee728..0ff58d42b 100644 --- a/rorg.org +++ b/rorg.org @@ -423,7 +423,21 @@ example in the [[* emacs lisp source reference][emacs lisp source reference]]. -* Bugs [7/9] +* Bugs [7/10] + +** TODO ruby new variable creation +Ruby doesn't seem able to handle the creation of new variables + +#+srcname: bug-ruby-number-evaluation +#+begin_src ruby :var table=bug-numerical-table :results replace +total = 0 +table.each{|n| total += n} +total/table.size +#+end_src + +#+resname: +: -:4:in `main': undefined local variable or method `total' for main:Object (NameError) +: from -:7 ** TODO R code execution seems to choke on certain inputs