On Fri, Jun 29, 2012 at 1:58 AM, Henrik Grubbström <
gru...@grubba.org> wrote:
> On Wed, 27 Jun 2012, Chris Angelico wrote:
>
>> Discovered something random about Pike today.
>>
>> Is it intentional that 'break' will terminate a catch block? The catch
>> returns 0 immediately (a zero_type 0, same as if it runs to
>> completion).
>
> Yes, this is an intentional feature. The implementation is also more
> efficient than the alternative of using throw(0) (hmm... potential
>
treeopt.in optimization).
Fascinating! Since it's official, I'll make use of it.
>> I can't find anything in the docs about it. It's amusing, more than
>> anything else, and I discovered it only because I had a switch {catch
>> {break;}} construct and it fell through.
>
> It ought to be documented. Feel free to submit a patch to eg
> refdoc/chapters/special_functions.xml.
Sure. Having a little bit of trouble with 'make doc' though: the
command involving "-x assemble_autodoc structure/onepage.xml" is
crashing with a Parser.XML.Tree.RootNode failure 'Indexing the integer
8 with unknown method "get_attributes".' at
pike/lib/modules/Parser.pmod/XML.pmod/Tree.pmod:1153, which is a line
involving get_node_type. This is with the latest 7.9, freshly pulled.
No difference if I 'make clean' or 'make spotless' first.
Prior to that error is a complaint that
GTK2/refdoc/images/gtk2_toolbar.png cannot be read in ordrer to move
it into the build directory. I can't find an ultimate origin error
that would cause the GTK images to be unbuildable; is there a
verbosity option I could turn on?
ChrisA