[Ironruby-core] "Taint" and (internal) copy constructors

Charles Oliver Nutter charles.nutter at sun.com
Thu Oct 25 05:32:27 EDT 2007

Curt Hagenlocher wrote:
> Currently, the copy constructors for the MutableString class will "lose" 
> the taint flag on the string being copied.  One practical consequence of 
> this is that any builtins that store local copies of the MutableString 
> would have to manually fix the taint flag.  Wouldn't it be better if the 
> default behavior were to preserve this information?

JRuby mimics this behavior, but we've debated just kicking taint and 
SAFE out the window. They're not provably safe (even in MRI), so they're 
almost certainly unsafe...and woah, the overhead.

Most folks using JRuby now just assume neither work.

- Charlie

More information about the Ironruby-core mailing list