我想阅读$*REPO
的文档,这是Installation
。如果我使用 p6doc ,我会收到一条很难看的错误消息(而不是简单的,用户友好的消息):
$ p6doc Installation
Could not find Installation at line 0 in:
/Users/brian/.perl6
/Applications/Rakudo/share/perl6/site
/Applications/Rakudo/share/perl6/vendor
/Applications/Rakudo/share/perl6
CompUnit::Repository::AbsolutePath<140211490473264>
CompUnit::Repository::NQP<140211475454056>
CompUnit::Repository::Perl5<140211475454096>
in sub locate-curli-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 218
in sub locate-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 39
in sub MAIN at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 92
in block <unit> at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 225
或者,如果我查找CompUnit::DependencySpecification
,我会收到不同的错误消息:
$ p6doc CompUnit::DependencySpecification
CompUnit::DependencySpecification is a builtin type, not an external module
in sub locate-curli-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 218
in sub locate-module at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 39
in sub MAIN at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 92
in block <unit> at /Applications/Rakudo/share/perl6/site/resources/C3A18C4AD5209A1B226E53B2C22A5347E5AC4790 line 225
我真的不在乎这是一种内置类型。我还是想看看它的文档。
这是一个Rakudo的东西,超过Perl 6吗?还有其他方式我应该阅读这些文档吗?我们如何期望普通程序员看到这些文档?
或者,这些事情是否有记录?
答案 0 :(得分:2)
目前还没有任何相关文档。如果您想确定,请从github克隆perl6 / doc repo并运行git grep <yourtypename>
。在这种情况下,CompuUnitRepo::Local::Installation
仅显示在type-graph.txt中,这意味着可能会用于呈现类型图形图像,但此类型没有实际的文档。