[#60404] is RB_GC_GUARD needed in rb_io_syswrite? — Eric Wong <normalperson@...>
I haven't gotten it to crash as-is, but it seems like we need to
4 messages
2014/02/01
[#60682] volatile usages — Eric Wong <normalperson@...>
Hi all, I went ahead and removed some use of volatile which were once
5 messages
2014/02/13
[#60794] [RFC] rearrange+pack vtm and time_object structs — Eric Wong <normalperson@...>
Extracted from addendum on top of Feature #9362 (cache-aligned objects).
4 messages
2014/02/16
[#61139] [ruby-trunk - Feature #9577] [Open] [PATCH] benchmark/driver.rb: align columns in text output — normalperson@...
Issue #9577 has been reported by Eric Wong.
3 messages
2014/02/28
[ruby-core:61077] [ruby-trunk - Feature #7854] [Assigned] New method Symbol[string]
From:
matz@...
Date:
2014-02-25 16:13:25 UTC
List:
ruby-core #61077
Issue #7854 has been updated by Yukihiro Matsumoto. Status changed from Rejected to Assigned Assignee changed from Yukihiro Matsumoto to Yui NARUSE Symbol.find is OK for me. Matz. ---------------------------------------- Feature #7854: New method Symbol[string] https://bugs.ruby-lang.org/issues/7854#change-45474 * Author: Nathan Zook * Status: Assigned * Priority: Normal * Assignee: Yui NARUSE * Category: core * Target version: next minor ---------------------------------------- I propose a new class method [] on Symbol. If a symbol s already exists such that s.to_s == string, then s is returned. If not, nil is returned. The inspiration for this method is a question I was asked, and the answer I was given: "Why would you want to turn a tainted string into a symbol?" "I don't--I want to access an existing symbol with tainted data". Symbol[] accesses the symbol table like hash[] accesses the elements of a hash. I believe that this completely addresses the problems behind tickets #7791 and #7839. I believe that it is a more intuitive solution than my proposal #7795, and I believe that this will also be useful for YAML.safe_load and similar initiatives. ---Files-------------------------------- symbol_lookup.patch (1.83 KB) symbol_lookup2.patch (1.36 KB) symbol_lookup3.patch (1.07 KB) symbol_lookup3_warn.patch (1.16 KB) -- http://bugs.ruby-lang.org/