Forum: Ruby-core [ruby-trunk - Bug #7674][Open] Document for using Struct.new with block

Posted by Hiroyuki Iwatsuki (iwadon)
on 2013-01-08 10:31
(Received via mailing list)
Issue #7674 has been reported by iwadon (Hiroyuki Iwatsuki).

----------------------------------------
Bug #7674: Document for using Struct.new with block
https://bugs.ruby-lang.org/issues/7674

Author: iwadon (Hiroyuki Iwatsuki)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0dev (2013-01-08 trunk 38740) [x86_64-darwin11.4.2]


I wrote the document for using Struct.new with block.
Posted by Nobuyoshi Nakada (nobu)
on 2013-01-08 18:34
(Received via mailing list)
Issue #7674 has been updated by nobu (Nobuyoshi Nakada).


Nitpick.

 *     Struct.new( [aString] [, aSym]+> ) {|| block }  -> StructClass

Actually StructClass is passed to the block.
----------------------------------------
Feature #7674: Document for using Struct.new with block
https://bugs.ruby-lang.org/issues/7674#change-35289

Author: iwadon (Hiroyuki Iwatsuki)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:


I wrote the document for using Struct.new with block.
Posted by Hiroyuki Iwatsuki (iwadon)
on 2013-01-08 21:04
(Received via mailing list)
Issue #7674 has been updated by iwadon (Hiroyuki Iwatsuki).

File struct.c.diff added

=begin
Thank you for the comment! I understood.

 $ ruby -e "p Struct.new(:x){|c| p(c, self)}"
 #<Class:0x007f8f738b9d90>
 #<Class:0x007f8f738b9d90>
 #<Class:0x007f8f738b9d90>

I updated the patch.
=end

----------------------------------------
Feature #7674: Document for using Struct.new with block
https://bugs.ruby-lang.org/issues/7674#change-35290

Author: iwadon (Hiroyuki Iwatsuki)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:


I wrote the document for using Struct.new with block.
Posted by zzak (Zachary Scott) (Guest)
on 2013-01-09 00:41
(Received via mailing list)
Issue #7674 has been updated by zzak (Zachary Scott).

Category set to DOC
Assignee set to zzak (Zachary Scott)
Target version set to 2.0.0


----------------------------------------
Feature #7674: Document for using Struct.new with block
https://bugs.ruby-lang.org/issues/7674#change-35291

Author: iwadon (Hiroyuki Iwatsuki)
Status: Open
Priority: Normal
Assignee: zzak (Zachary Scott)
Category: DOC
Target version: 2.0.0


I wrote the document for using Struct.new with block.
Posted by zzak (Zachary Scott) (Guest)
on 2013-01-19 03:38
(Received via mailing list)
Issue #7674 has been updated by zzak (Zachary Scott).

Tracker changed from Feature to Bug
ruby -v set to 2.0.0

missing documentation considered bug
----------------------------------------
Bug #7674: Document for using Struct.new with block
https://bugs.ruby-lang.org/issues/7674#change-35484

Author: iwadon (Hiroyuki Iwatsuki)
Status: Open
Priority: Normal
Assignee: zzak (Zachary Scott)
Category: DOC
Target version: 2.0.0
ruby -v: 2.0.0


I wrote the document for using Struct.new with block.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.