Forum: IronRuby Review: Array\to_s fix for : properly handles recursive array

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
on 2009-05-12 03:02
http://github.com/tnachen/ironruby/commit/eeaf82a8...

Modified IListOps to fix the recursive array problem during to_s call.

It used to only print the values in the array, and skip over arrays in
the array that contains the same values.

However, to conform with mri, I modified it so it will walk into the
array and print the values for only one level deep, then print the
remaining arrays with "[...]".

Files Changed:

*
Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/to_s_tags.txt
(deleted)
*
Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/env/clear_tags.txt
(deleted)
*
Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Extensions/IListOps.cs
(modified)

Thank you!
Tim
on 2009-05-12 03:03
Forgot to mention that I deleted the tag files that has no more tags in
it.

Tim

From: ironruby-core-bounces@rubyforge.org
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Tim Chen (SDO)
Sent: Monday, May 11, 2009 6:02 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Review: Array\to_s fix for : properly handles
recursive array

http://github.com/tnachen/ironruby/commit/eeaf82a8...

Modified IListOps to fix the recursive array problem during to_s call.

It used to only print the values in the array, and skip over arrays in
the array that contains the same values.

However, to conform with mri, I modified it so it will walk into the
array and print the values for only one level deep, then print the
remaining arrays with "[...]".

Files Changed:

*
Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/to_s_tags.txt
(deleted)
*
Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/env/clear_tags.txt
(deleted)
*
Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Extensions/IListOps.cs
(modified)

Thank you!
Tim
on 2009-05-12 04:12
Hello Tim,
I would like to share experience about code convention with you. You
should set a braces on Same Line option
(http://www.knowdotnet.com/articles/toolsoptionsnew...
).

Cheers,
-Jirapong
on 2009-05-12 09:25
It is the first time I modify the ruby source :) so sorry for the
ignorance.

I would change those and push them again.

Thanks for the feedback!

Tim

________________________________
From: ironruby-core-bounces@rubyforge.org
[ironruby-core-bounces@rubyforge.org] on behalf of
jirapong.nanta@gmail.com [jirapong.nanta@gmail.com]
Sent: Monday, May 11, 2009 7:11 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Review: Array\to_s fix for : properly
handles recursive array

Hello Tim,
I would like to share experience about code convention with you. You
should set a braces on Same Line option
(http://www.knowdotnet.com/articles/toolsoptionsnew...).

Cheers,
-Jirapong

On May 12, 2009, at 8:03 AM, Tim Chen (SDO) wrote:

Forgot to mention that I deleted the tag files that has no more tags in
it.

Tim

From:
ironruby-core-bounces@rubyforge.org<mailto:ironruby-core-bounces@rubyforge.org>
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Tim Chen (SDO)
Sent: Monday, May 11, 2009 6:02 PM
To: ironruby-core@rubyforge.org<mailto:ironruby-core@rubyforge.org>
Subject: [Ironruby-core] Review: Array\to_s fix for : properly handles
recursive array

http://github.com/tnachen/ironruby/commit/eeaf82a8...

Modified IListOps to fix the recursive array problem during to_s call.

It used to only print the values in the array, and skip over arrays in
the array that contains the same values.

However, to conform with mri, I modified it so it will walk into the
array and print the values for only one level deep, then print the
remaining arrays with â€œ[â€¦]â€.

Files Changed:

*
Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/to_s_tags.txt
(deleted)
*
Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/env/clear_tags.txt
(deleted)
*
Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Extensions/IListOps.cs
(modified)

Thank you!
Tim
on 2009-05-12 20:26
Looks good!

From: ironruby-core-bounces@rubyforge.org
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Tim Chen (SDO)
Sent: Tuesday, May 12, 2009 12:12 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Review: Array\to_s fix for : properly
handles recursive array

It is the first time I modify the ruby source :) so sorry for the
ignorance.

I would change those and push them again.

Thanks for the feedback!

Tim
________________________________
From: ironruby-core-bounces@rubyforge.org
[ironruby-core-bounces@rubyforge.org] on behalf of
jirapong.nanta@gmail.com [jirapong.nanta@gmail.com]
Sent: Monday, May 11, 2009 7:11 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Review: Array\to_s fix for : properly
handles recursive array
Hello Tim,
I would like to share experience about code convention with you. You
should set a braces on Same Line option
(http://www.knowdotnet.com/articles/toolsoptionsnew...).

Cheers,
-Jirapong

On May 12, 2009, at 8:03 AM, Tim Chen (SDO) wrote:

Forgot to mention that I deleted the tag files that has no more tags in
it.

Tim

From:
ironruby-core-bounces@rubyforge.org<mailto:ironruby-core-bounces@rubyforge.org>
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Tim Chen (SDO)
Sent: Monday, May 11, 2009 6:02 PM
To: ironruby-core@rubyforge.org<mailto:ironruby-core@rubyforge.org>
Subject: [Ironruby-core] Review: Array\to_s fix for : properly handles
recursive array

http://github.com/tnachen/ironruby/commit/eeaf82a8...

Modified IListOps to fix the recursive array problem during to_s call.

It used to only print the values in the array, and skip over arrays in
the array that contains the same values.

However, to conform with mri, I modified it so it will walk into the
array and print the values for only one level deep, then print the
remaining arrays with "[...]".

Files Changed:

*
Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/to_s_tags.txt
(deleted)
*
Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/env/clear_tags.txt
(deleted)
*
Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Extensions/IListOps.cs
(modified)

Thank you!
Tim
on 2009-05-12 20:59
Looks good.

From: ironruby-core-bounces@rubyforge.org
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Tim Chen (SDO)
Sent: Monday, May 11, 2009 6:03 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Review: Array\to_s fix for : properly
handles recursive array

Forgot to mention that I deleted the tag files that has no more tags in
it.

Tim

From: ironruby-core-bounces@rubyforge.org
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Tim Chen (SDO)
Sent: Monday, May 11, 2009 6:02 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Review: Array\to_s fix for : properly handles
recursive array

http://github.com/tnachen/ironruby/commit/eeaf82a8...

Modified IListOps to fix the recursive array problem during to_s call.

It used to only print the values in the array, and skip over arrays in
the array that contains the same values.

However, to conform with mri, I modified it so it will walk into the
array and print the values for only one level deep, then print the
remaining arrays with "[...]".

Files Changed:

*
Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/to_s_tags.txt
(deleted)
*
Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/env/clear_tags.txt
(deleted)
*
Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Extensions/IListOps.cs
(modified)

Thank you!
Tim
This topic is locked and can not be replied to.