[#25936] [Bug:1.9] [rubygems] $LOAD_PATH includes bin directory — Nobuyoshi Nakada <nobu@...>

Hi,

10 messages 2009/10/05

[#25943] Disabling tainting — Tony Arcieri <tony@...>

Would it make sense to have a flag passed to the interpreter on startup that

16 messages 2009/10/05

[#26028] [Bug #2189] Math.atanh(1) & Math.atanh(-1) should not raise an error — Marc-Andre Lafortune <redmine@...>

Bug #2189: Math.atanh(1) & Math.atanh(-1) should not raise an error

14 messages 2009/10/10

[#26222] [Bug #2250] IO::for_fd() objects' finalization dangerously closes underlying fds — Mike Pomraning <redmine@...>

Bug #2250: IO::for_fd() objects' finalization dangerously closes underlying fds

11 messages 2009/10/22

[#26244] [Bug #2258] Kernel#require inside rb_require() inside rb_protect() inside SysV context fails — Suraj Kurapati <redmine@...>

Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails

24 messages 2009/10/22

[#26361] [Feature #2294] [PATCH] ruby_bind_stack() to embed Ruby in coroutine — Suraj Kurapati <redmine@...>

Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine

42 messages 2009/10/27

[#26371] [Bug #2295] segmentation faults — tomer doron <redmine@...>

Bug #2295: segmentation faults

16 messages 2009/10/27

[ruby-core:25973] Re: [Bug #2131] f(not x) => syntax error

From: Michal Suchanek <hramrach@...>
Date: 2009-10-06 15:24:55 UTC
List: ruby-core #25973
2009/9/23 Rick DeNatale <rick.denatale@gmail.com>:
> On Wed, Sep 23, 2009 at 5:26 AM, Yukihiro Matsumoto <matz@ruby-lang.org> =
wrote:
>> Hi,
>>
>> In message "Re: [ruby-core:25713] [Bug #2131] f(not x) =3D> syntax error=
"
>> =C2=A0 =C2=A0on Wed, 23 Sep 2009 00:13:06 +0900, "James M. Lawrence" <re=
dmine@ruby-lang.org> writes:
>>
>> |This should have been classified as a feature request.
>> |
>> |Since (not x) is legal syntax, it is my opinion that f(not x) should be=
 legal.
>>
>> So, do you mean a,b,c =3D 1,2,3 is legal syntax, should we allow
>> f(a,b,c =3D 1,2,3) ?

Well, it's somewhat ambiguous in this case. Comma is used both as
argument separator and as assignment separator. Spicing with more
parens should help, though.

>
> or even
>
> =C2=A0f(class Foo;attr_accessor :bar;end;Foo.new.x=3D5)
>
> <G>
>

It's not legal syntax? That surprises me .. it does return a value, doesn't=
 it?

Well, maybe adding that Foo.new.x=3D5 is a bit overboard.

Thanks

Michal

In This Thread