[#2748] Proposal: New Bignum — "Evan Webb" <evan@...>
During some experiments with ruby cryptography, I found some problems with
11 messages
2004/04/06
[#2749] Re: Proposal: New Bignum
— matz@... (Yukihiro Matsumoto)
2004/04/06
Hi,
[#2764] RDoc :enddoc: — Tanaka Akira <akr@...17n.org>
I found that RDoc document some method after :enddoc:. Is it
7 messages
2004/04/10
[#2788] Problems building ext/io/wait.c in 1.8 branch — Gavin Sinclair <gsinclair@...>
I can't get io/wait installed. The main problem is that it doesn't
6 messages
2004/04/17
[#2799] Re: Problems building ext/io/wait.c in 1.8 branch
— Gavin Sinclair <gsinclair@...>
2004/04/21
On Saturday, April 17, 2004, 4:42:14 PM, Gavin wrote:
[#2800] Re: Problems building ext/io/wait.c in 1.8 branch
— ts <decoux@...>
2004/04/21
>>>>> "G" == Gavin Sinclair <gsinclair@soyabean.com.au> writes:
[#2801] Re: Problems building ext/io/wait.c in 1.8 branch
— Gavin Sinclair <gsinclair@...>
2004/04/21
On Thursday, April 22, 2004, 1:21:29 AM, ts wrote:
[#2805] Bug 1318 — Steven Jenkins <steven.jenkins@...>
Any comments on
9 messages
2004/04/23
[#2814] Tempfile strangeness in 1.9.0 — Steven Jenkins <steven.jenkins@...>
I didn't open a bug for this because it's from the CVS head, but it
5 messages
2004/04/24
Re: RDoc :enddoc:
From:
Tanaka Akira <akr@...17n.org>
Date:
2004-04-12 08:18:04 UTC
List:
ruby-core #2775
In article <0AB6F24A-8BCB-11D8-B95B-000A95676A62@pragprog.com>, Dave Thomas <dave@pragprog.com> writes: > The problem here is the RDoc currently interpreters :enddoc: as an > instruction to the container (either a top-level file or a > class/module). In this case, the top-level container (the file) has > been told not to document anything. However, when you say "class M::C", > RDoc is not documenting in the context of the container 'M', which has > not been told to end documenting. It therefore accepts the > documentation for the nested class 'C'. I understand that RDoc maintains a documentation-enabling flag for each container. > I could change this behavior so that :enddoc: stopped _all_ future > documentation, but I'm not sure what the semantics should be. > > Any ideas? I think the flag should inherit from an outer container's flag instead of the previous state in the container last appeared. In other words, it should behave lexically. The current non-lexical behavior makes curious result. For example, M::C is documented if M is defined by module sentence but not documented if M is defined by Module.new as follows. % cat a.rb module M end # :enddoc: class M::C # documented end % cat b.rb M = Module.new # :enddoc: class M::C # not documented end Another example is the flag is retained over multiple files. With following files, rdoc a.rb b.rb generates documents for M and M::C. But rdoc b.rb a.rb generates a document for M::C3 too. % cat a.rb module M class C1 end # :enddoc: class C2 end end % cat b.rb module M class C3 end end The order sensitive behavior is not intuitive. -- Tanaka Akira