[#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:61000] [ruby-trunk - Feature #9553] Make argument validation routine of a method an object
From:
boris@...
Date:
2014-02-22 07:39:12 UTC
List:
ruby-core #61000
Issue #9553 has been updated by Boris Stitnicky. It is my fault that I was not aware of `Method#parameters` when writing this post. Too bad I did not participate in its naming, I would push for calling it `Method#arguments`. This method resolves the main reasons that led me to writing this post. This post can thus be closed at any time without harm. Yet, it remains worthy of consideration to make `#parameters` method return a special object rather than just `Array` as it does now. ---------------------------------------- Feature #9553: Make argument validation routine of a method an object https://bugs.ruby-lang.org/issues/9553#change-45402 * Author: Boris Stitnicky * Status: Open * Priority: Normal * Assignee: * Category: * Target version: ---------------------------------------- Ruby methods have their acceptable argument configurations specified by special syntax. As argument fields has gotten more complex, simple `#arity` is no longer enough to capture the type of the argument field. I suggest making this argument validation routine (so far defined by special syntax) introspectible, and reusable for the purposes of metaprogramming. One possibility would be to have eg. `ArgumentValidator` and/or `UnboundArgumentValidator` objects just like we have method and unbound method objects. Then eg. `Method#argity` / `Proc#argity` would return that `ArgumentValidator` or `UnboundArgumentValidator`. The purpose of this post is not to suggest the final solution, but to bring attention to the problem of non-oo nature of built-in argument validation and the growing need to do something about that. -- http://bugs.ruby-lang.org/