[#7476] Net::HTTP Bug in Ruby 1.8.4? — James Edward Gray II <james@...>
Can a Net::HTTP guru comment on this message:
[#7485] Bugzilla for ruby? — Hadmut Danisch <hadmut@...>
Hi,
[#7493] how to introduce reference objects into ruby — "Geert Fannes" <Geert.Fannes@...>
Hello,
[#7497] Re: how to introduce reference objects into ruby — "Geert Fannes" <Geert.Fannes@...>
Hello,
[#7500] Re: how to introduce reference objects into ruby — "Geert Fannes" <Geert.Fannes@...>
The problem with the code you sent is that you have to go through ALL
The columns store the actual values (doubles), and the rows store pointers to the corresponding doubles. This way, I can update a double directly via the columns, via the rows after dereferencing the pointers.
[#7518] Proposal: String#notempty? — Bertram Scharpf <lists@...>
Hi,
[#7524] Sefe level: bug or feature? — "Kirill A. Shutemov" <k.shutemov@...>
Why cannot do eval with $SAFE=3 and can with $SAFE=4? Is it bug or
Hi,
On Mon, 13 Mar 2006, Yukihiro Matsumoto wrote:
[#7529] Re: Proposal: String#notempty? — "Berger, Daniel" <Daniel.Berger@...>
> -----Original Message-----
[#7546] Re: how to introduce reference objects into ruby — "Geert Fannes" <Geert.Fannes@...>
In Ruby, there's the []= and [] operators which you can define together.
[#7553] "not" operator used in expression that is a method parameter can generate syntax error — noreply@...
Bugs item #3843, was opened at 2006-03-15 22:09
Hi,
Nobu, you are not answering to the question.... You have to unveil why
Hi,
Hello,
Zev Blut wrote:
On 3/16/06, Joel VanderWerf <vjoel@path.berkeley.edu> wrote:
On 3/16/06, Zev Blut <rubyzbibd@ubit.com> wrote:
Hello,
Yukihiro Matsumoto wrote:
On 3/16/06, mathew <meta@pobox.com> wrote:
Brian Mitchell wrote:
On 3/16/06, mathew <meta@pobox.com> wrote:
Dear all
What you've described is the basic predence difference between
Evan Phoenix wrote:
[#7600] ruby_script ? — "Nicolas Despr鑚" <nicolas.despres@...>
Hi list,
>>>>> "N" == Nicolas Despr=E8s?= <ISO-8859-1> writes:
On 3/25/06, ts <decoux@moulon.inra.fr> wrote:
>>>>> "N" == Nicolas Despr=E8s?= <ISO-8859-1> writes:
[#7601] to_str, to_s and StringValue — "Gerardo Santana Gez Garrido" <gerardo.santana@...>
If I understand correctly, StringValue is a way for writing duck-type
[#7614] PATCH: A subclassable Pathname — "Evan Phoenix" <evanwebb@...>
A simply change (changing all references of "Pathname.new" to
In article <92f5f81d0603262350k796fe48fp2224b9f2108ac507@mail.gmail.com>,
Quite right on the .glob and .getwd. I guess the tests don't test hit
In article <92f5f81d0603270903g2fb02244i6a395be708dfffa3@mail.gmail.com>,
In article <87fyl3x0wd.fsf@m17n.org>,
Hm, well, thats because of the shortcut behavior in Pathname#+ which
In article <92f5f81d0603271717r1ce51d30p6c28e363dc32a09b@mail.gmail.com>,
Re: [ ruby-Bugs-3843 ] "not" operator used in expression that is a method parameter can generate syntax error
On 3/16/06, mathew <meta@pobox.com> wrote:
> Brian Mitchell wrote:
> > On 3/16/06, mathew <meta@pobox.com> wrote:
> >
> >> I still don't understand why foo(!(1<2)) is OK, but foo(not(1<2)) isn't.
> >>
> >> The pickaxe says that the only difference between '!' and 'not' is
> >> precedence, and in these two cases everything is explicitly bracketed so
> >> precedence shouldn't be involved.
> >>
> >> What am I missing?
> >>
> >
> > foo(not(1<2), 3)
> > or more clearly bound if I understand Matz correctly:
> > foo(not((1<2),3))
> >
>
> Except comma isn't an operator according to the Pickaxe. Could be a
> documentation error, I suppose.
>
> Accepting for a moment that comma is an operator...
>
> I don't see how it makes sense to give an error for foo(not(1<2)) just
> because a completely different statement foo(not(1<2),3) would have a
> precedence clash. I mean, method {|x| 2*x } is allowed, even though
> method {|x| 2*x }, {|y| 3*y} wouldn't be.
Comma is not an operator, strictly speaking, but when parsing code,
you must bind the acitons of "," and "not" in specific orders. This is
why I called it an operator (more in the scope of the grammar than the
actual langauge). Please pardon my generic use of the term.
Continuing from there one can see that there would be no problem
making a special case for
f(not x)
This will be turned around right after the dust settles by someone
unaware of this. They might complain:
I can use f(not x) legally but why does f(not x, y) cause an error?
I think there is a delicate ballance to be made and consistency of
syntax is more important to me than allowing an extra corner case.
I could take a guess at why this was settled on. Consider the following:
def f *; end
f f not 1 # f f not 1, 2 will also fail
This example will fail. It should correctly complain about the not,
saying "syntax error, unexpected kNOT, expecting $end" or similar. On
the other hand, Ruby is smart enough to handle the following (though
it will give a warning):
def f*; end
f f 1 # f f 1, 2 will also work.
The amount of work nessessary to implement this includes giving
function application and "," explicit precedence while preserving the
ability to do:
not f f 1
Which has the behavior:
not(f(f(1)))
I hope this helps and apologize in advance for any incorrect
information the above might have.
Now, the question of whether or not "," and "not" could be made
smarter is not one I can answer. My intuition would say that the gain
from using not in an argument when compared to the increased
complexity of the parser would not be worth it. For now, I find the
glyph style operators work in all of my code (indeed, I don't ever use
"not").
> I've never encountered a language where f(x) was OK but f(not(x))
> wasn't, so this is Surprising (TM). I mean, it works in Perl, for example.
I doubt the fact that language X can do something has any bearing on
how Ruby will handle this in the future. This is entirely up to Matz
and what he thinks servers the language (and its implementation) best.
You better be prepared for many surprises in most languages. Ruby is
no exception. It happens to bet on the fact that Matz knows Ruby
considerably better than most of us.
Brian.