[#83107] Alias Enumerable#include? to Enumerable#includes? — Alberto Almagro <albertoalmagro@...>

Hello,

9 messages 2017/10/04

[ruby-core:83108] Re: File.setuid? on IO (Re: [ruby-cvs:67289] normal:r60108 (trunk): file.c: release GVL in File.{setuid?, setgid?, sticky?})

From: Eric Wong <normalperson@...>
Date: 2017-10-04 17:05:04 UTC
List: ruby-core #83108
Nobuyoshi Nakada <[email protected]> wrote:
> On 2017/10/04 15:55, Eric Wong wrote:
> > Oops, not intentional.  On the other hand, does it hurt?
> 
> I don't think it hurtful, not sure if it is useful though.
> 
> ```
> $ ./ruby -v -e 'p File.setuid?(STDIN)' < /usr/bin/at
> ruby 2.5.0dev (2017-10-04 trunk 60116) [x86_64-darwin15]
> true
> ```

I think it might be useful to avoid heap allocations for
File::Stat objects (but not syscalls...).

> > I can write tests + NEWS entry for accidental new feature :)
> 
> And rdoc?

Of course :>

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

In This Thread