Issue #15148 has been updated by harurinn (t cl).


code just like this
irb
'aa'.methods.sort
pp _
is1 = _
is1.size
is2 = String.instance_methods.size
String.instance_methods - is1

----------------------------------------
Bug #15148: String::instance_methods size is different String#methods size after call pp method
https://bugs.ruby-lang.org/issues/15148#change-74147

* Author: harurinn (t cl)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
I'm sorry, my English is poor.i'm a beginner ruby leaner.When I was just learning ruby, I noticed a strange problem. After called 'pp' method, the number of String instance objects became less, just like follows two pictures. 



---Files--------------------------------
Screenshot from 2018-09-23 01-33-41.png (291 KB)
Screenshot from 2018-09-23 01-33-52.png (488 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>