Implements Kernel.srand with no parameters
Changes RubyRegex to not clone the input string when being used for
String#scan, and to share the cloned string when possible. Without the
sharing, you could cause OutOfMemoryException.
From: Shri B.
Sent: Tuesday, November 17, 2009 3:59 PM
To: [email protected]
Cc: IronRuby External Code R.
Subject: Review: Fix
fpt review /shelveset:regex;sborde
Implements Kernel.srand with no parameters
Changes RubyRegex to not clone the input string when being used for
String#scan, and to share the cloned string when possible. Without the
sharing, you could cause OutOfMemoryException.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.