From: "Nicolas V." Date: 2013-03-20T12:18:40+09:00 Subject: Ruby tainting on primitives Hi there, I am trying to use tainting on Ruby primitives, but it seems to be difficult: ~ (main) > x = 123 => 123 ~ (main) > x.taint => 123 ~ (main) > x.tainted? => false ~ (main) > x = 999999999999999999999999999999999 => 999999999999999999999999999999999 ~ (main) > x.taint => 999999999999999999999999999999999 ~ (main) > x.tainted? => true ~ (main) > Fixnum doesn't allow to be tainted, but Bignums are. I was wondering if we could upgrade Fixnums into Bignums whenever they get tainted. In other words, I'd like automatic boxing on primitives when tainting is used. -- Posted via http://www.ruby-forum.com/.