Actions
Feature #8684
closedGC.disable with block
Description
I propose GC.disable with block.
It is useful to ensure GC.enable.
usage:
GC.disable do
do_something # GC disabled
end
GC enabled¶
Files
Updated by matz (Yukihiro Matsumoto) over 11 years ago
- Status changed from Open to Rejected
It's easily done by
begin
GC.disable
do_something
ensure
GC.enable
end
and considering block scoping doesn't work well with threads, I don't think it's worth to add as a built-in.
Matz.
Actions
Like0
Like0