General

Profile

Francoys_Proulx (Francois Proulx)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 3 3

Activity

11/29/2008

05:39 AM Ruby Bug #800 (Rejected): Problem with Array class
=begin
If you test this simple program, you will see why array should be dup on assignment ...

a=1
b=1
c=[a,b]

def foo(x)
x[0] +=1
x[1] +=1
end

d = c
e = d
f = e

...
Francoys_Proulx (Francois Proulx)
04:27 AM Ruby Bug #797: bug or feature: local method ?
=begin
Brian Candler wrote:
> If you really want to organise your code like this, you can using lambdas:
> def foo
> a_list = ...
> b_list = ...
> c_list = ...
>
> foo1 = lambda {
> op1(a_list, b_list, c_...
Francoys_Proulx (Francois Proulx)
12:36 AM Ruby Bug #797: bug or feature: local method ?
=begin
Diogo Lisboa wrote:
> On Wed, Nov 26, 2008 at 4:32 PM, Francoys <francois.pr@videotron.ca> wrote:
>
>> declaring variables inside a method that are accessibles to all the
>> nested methods.
>>
>
> This isn't possib...
Francoys_Proulx (Francois Proulx)

11/28/2008

03:46 AM Ruby Bug #797: bug or feature: local method ?
=begin
Brian Candler wrote:
> On Thu, Nov 27, 2008 at 03:32:18AM +0900, Francoys wrote:
>
>> declaring variables inside a method that are accessibles to all the
>> nested methods.
>>
>
> You can do this with closures:
>
...
Francoys_Proulx (Francois Proulx)

11/27/2008

03:37 AM Ruby Bug #797: bug or feature: local method ?
=begin
Yukihiro Matsumoto wrote:
>
> Ah, maybe. But this syntax can be spared for more fantastic purpose,
> such as defining a method only visible from enclosing method, for
> example. You can redefine a method using #define_metho...
Francoys_Proulx (Francois Proulx)

11/26/2008

03:25 AM Ruby Bug #797 (Closed): bug or feature: local method ?
=begin
It's possible to create a method inside a method. I've never see any mention of this in any documentation. It's a feature that is officially part the spec of the language or it's a bug ?
=end
Francoys_Proulx (Francois Proulx)
03:09 AM Ruby Bug #796 (Closed): dynamic constant assignment
=begin
I understand the difference in the use of variable and constant. But sometime you need to be able to assigned a value dynamiquely when you are initializing your application. I see 2 possibility to address the problem:

- a in...
Francoys_Proulx (Francois Proulx)

Also available in: Atom