[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby-dev summary 25781-25961

Kazuo Saito

4/1/2005 4:04:00 PM

Hi all,

Here is a summary of ruby-dev mailing list.


[ruby-dev:25853] conflict method and local variable
[ruby-dev:25879] Ruby2.0MethodSearchRule
[ruby-dev:25880] Ruby2.0LambdaWithLocalVariable

Hidetoshi Nagai asked about following behavior on 1.9:

$ /usr/local/bin/ruby -v
ruby 1.9.0 (2005-03-07) [i686-linux]
$ /usr/local/bin/ruby -e "
class A
def hoge(x)
p x
end
end

a = A.new
a.instance_eval{hoge('fuga')}
hoge = 'aaa'
a.instance_eval{hoge('fuga')}
p hoge
"
"fuga"
-e:11: undefined method `call' for "aaa":String (NoMethodError)

Matz replied that it is a experimental 2.0 feature allowing us to
call Proc object in local variables directly (See [1] for details).

During the discussion, Matz brought another new idea to change
method search rule (See [2]). The idea protects unwanted method
overriding and conflict of method signatures, by starting method
search from the class we are looking at, not from "self" object.
You can call the method in "self" object by adding "self." to
function style call.

Matz said that these are *experimental* yet and feel free to
show your idea.


[ruby-dev:25877] Ruby2.0BlockLocalVariable

SASADA Koichi suggest us consider a new specification of block local
variables, appeared on Matz blog. Babie posted a good English summary
of the spec to Redhand (See [3]). Shugo Maeda asked about warning for
statements that uses block local variables from outside of the block:

def hoge
iter{|a ; b|
...
}
p a #=> error on CVS HEAD, but this will be warned
end

He said that it may be OK to keep this causes error. Matz answered
this will be changed to warning, but users will fixed the warning
in most cases.


[1] Ruby2.0LambdaWithLocalVariable:

http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb...
name=Ruby2.0LambdaWithLocalVariableEnglish
[2] Ruby2.0MethodSearchRule:

http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb...
name=Ruby2.0MethodSearchRuleEnglish
[3] Ruby 2.0 block local variable:
http://redhanded.hobix.com/inspect/ruby20BlockLocalVar...


ruby-dev summary index:
http://i.loveruby.net/en/ruby-dev-su...

Kazuo Saito <ksaito@uranus.dti.ne.jp>



2 Answers

dblack

4/1/2005 4:25:00 PM

0

JohnPaulPontiff

5/4/2011 2:17:00 AM

0


Hey,

On May 2, 5:32 pm, Phil Bowles <pbow...@aol.com> wrote:
> new Codices? And none of them Codex Eldar?

Iirc, Tau and Crons are still in 3rd ed limbo.
Eldar players can fend-off racial extinction until 2012.

> There isn't an Eldar version

True. As far as you know ...

> too specialised a kit for GW to be able to shift just
> for a White Dwarf add-on

[shrug] Summer Campaign support was stopped (in 2004?).
We'll see. I imagined a WD announcement for a new book.
I.e. one WD article does not a whole "summer" make.

> that silhouette is sufficiently Dark
> Eldaresque that it would be hard to convert

I think I'd need a *photograph* to judge ...

> Given GW's usual logic

Haha! Good one. Ref: L*******/ N*****/ Effinstank/ et al.
Also, 10,000 Chinese Jell-o moulds in an NG15 land-fill.

> it would be odd for the Craftworlders to get an all-new
> plastic vehicle in Spearhead and another one now

Granted. Yet, oddness cannot be seen as a deterrent -
Smugly self-satisfied incompetence is (tm)GW.
Ref: CSM Codex (still not bitter).

> How about an Ork Fighta-Bomba?

That, too, was specifically mentioned.
Some disagree on whether it's a FW model -

I omitted the "legitimised" units from my post since,
if one isn't buying FW models, they would be irrelevant.
(And if you are, unit relevance is largely irrelevant ... )


Pla (too many parentheses) ya