dup/clone and taintedness

8 views
Skip to first unread message

John Merlino

unread,
Oct 7, 2012, 9:54:36 PM10/7/12
to Ruby on Rails: Talk
I was reading this:

"these methods allocate a new instance of the class of the object on
which they are invoked. They then copy all the instance variables and
the taintedness of the receiver object to the newly allocated object."

What does it mean "taintedness"?

thanks for response

Rob Biedenharn

unread,
Oct 8, 2012, 9:49:25 AM10/8/12
to rubyonra...@googlegroups.com
Taintedness refers to a default lack of trust in a value that was obtained from an unknown source. (Typically user input of some kind.)

http://www.ruby-doc.org/docs/ProgrammingRuby/html/taint.html

http://en.wikipedia.org/wiki/Taint_checking

-Rob
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages