judofyr (Magnus Holm) wrote: > Nobody knows them. Nobody uses them. Let's just get rid of flip-flops, shall we? Do NOT remove this useful feature!!! I used it a lot already in Perl, and now using it in Ruby too. The deprecation warni...rovf (Ronald Fischer)
Consider the following program: ~~~ruby #!/usr/bin/env ruby BEGIN {$VERBOSE = true} require 'test/unit' class Hash STDERR.puts method_defined?(:<<) alias << merge! STDERR.puts method_defined?(:<<) end ~~~ In older Ru...rovf (Ronald Fischer)
Consider the following program nowa.rb: ~~~ def foo(a) end %w(x).each {|y|} foo(1) z=5 ~~~ If I syntax-check it with *ruby -cw nowa.rb* I get the following warning: ~~~ nowa.rb:5: warning: assigned but unused variable - z...rovf (Ronald Fischer)
I put this under "Misc", because I'm not sure, whether this is a bug, a feature request, or maybe a deliberate (but for me obscure) decision in language design: NilClass (and Fixnum) do not support clone. That's fine. However, ...rovf (Ronald Fischer)
There is one more observation I would like to add; I don't know whether or not this is important: When the segmentation fault occured the first time in our original application with Cygwin MRI Ruby, I reexecuted the whole application ...rovf (Ronald Fischer)
I just made a minor change, which shows better where the error occurs (segf_test_improved.rb). The program needs to be operated in the same way as segf_test.rb which I described before. Two things are notable: 1. Like in the backt...rovf (Ronald Fischer)
nobu (Nobuyoshi Nakada) wrote: > And 2.3.3 has been outdated, try 2.3.4, 2.4.1, or trunk. I just verified: There is no newer port available for Cygwin, at least not on those mirrors, which Cygwin offers. However, I have included a...rovf (Ronald Fischer)
nobu (Nobuyoshi Nakada) wrote: > Please show the whole code to reproduce, not a part. > ... Aside from the fact that my company unfortunately does not allow me to send you the whole application, as this is a strategic product, I think ...rovf (Ronald Fischer)