Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
S99: boolean context
  • Loading branch information
cognominal committed Sep 2, 2014
1 parent 9720a17 commit 10d91b4
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions S99-glossary.pod
Expand Up @@ -172,19 +172,39 @@ Particularly cute, because L</phaser>s expect blasts.
A source code section delimited by braces.
Used for L<control flow> and as L</scope>.

=head2 boxing
=head2 Bool

Operation transforming a L</native> L</value> into an object.
The reverse operation is unboxing.
The relation between boxed/native should not be confused
with L</container>/containee.
L</Boolean> type.

=head2 boolean

L</Value> of type L</Bool>. Apart the class itself, can be either <True> or <False>.

=head2 boolean context

A L</context> that forces an L</expression> to give a L</boolean> value.
The L</prefix> L</operators> C<so>, C<not> and their
repective higher L</precedence> C<?> and <!> forms force a boolean context.
The L</predicate> part of a L</control flow> L</statement> forces a boolean context.
A class can define a C<Bool> method to handle the boolean context.
For L</native>s, within L</MoarVM>, it is handled by L</MVMBoolificationSpec> member
of the L</stable> structure.

=head2 bootstrap

Starting up a system that uses itself to define, build or compile itself, is a practical exercise on solving the chicken and egg problem.
This phase is called bootstrap. L<Documentation|https://github.com/MoarVM/MoarVM/blob/master/docs/bootstrap.markdown>
about booststrapping the L</6model> of L<MoarVM>

=head2 boxing

Operation transforming a L</native> L</value> into an object.
The reverse operation is unboxing.
The relation between boxed/native should not be confused
with L</container>/containee.

=head2 branch

=head2 brb

Be Right Back. Only L</afk> for a little while.
Expand Down Expand Up @@ -1691,8 +1711,8 @@ L<http://doc.perl6.org/type/Whatever>.

=head2 whitespace

Any Perl 6 L</token>s may or must be separated by tokens.
L</comment>s are Whitespaces .
Any Perl 6 L</token> may or must be separated by tokens.
L</comment>s are whitespaces .

=head2 WIP

Expand Down

0 comments on commit 10d91b4

Please sign in to comment.