<commit_before>## $Id$

=head1 TITLE

Bool - Perl 6 boolean class

=head1 DESCRIPTION

This file sets up the Perl 6 C<Bool> class, and initializes
symbols for C<Bool::True> and C<Bool::False>.

=cut

.namespace ['Bool']

.sub 'onload' :anon :init :load
    .local pmc protoobject
    $P0 = get_hll_global ['Perl6Object'], 'make_proto'
    protoobject = $P0('Boolean', 'Bool')

    $P0 = protoobject.'new'()
    $P0 = 0
    set_global 'False', $P0

    $P0 = protoobject.'new'()
    $P0 = 1
    set_global 'True', $P0
.end

# Local Variables:
#   mode: pir
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4:<commit_msg>[perl6]: * Add .ACCEPTS for Bool objects.<commit_after>## $Id$

=head1 TITLE

Bool - Perl 6 boolean class

=head1 DESCRIPTION

This file sets up the Perl 6 C<Bool> class, and initializes
symbols for C<Bool::True> and C<Bool::False>.

=cut

.namespace ['Bool']

.sub 'onload' :anon :init :load
    .local pmc protoobject
    $P0 = get_hll_global ['Perl6Object'], 'make_proto'
    protoobject = $P0('Boolean', 'Bool')

    $P0 = protoobject.'new'()
    $P0 = 0
    set_global 'False', $P0

    $P0 = protoobject.'new'()
    $P0 = 1
    set_global 'True', $P0
.end


.sub 'ACCEPTS' :method
    .param pmc topic
    .return (self)
.end

# Local Variables:
#   mode: pir
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4:
{'fraction_non_alphanumeric': 0.14888888888888888, 'fraction_numerical': 0.028888888888888888, 'mean_word_length': 3.3301282051282053, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '618489', 'n_tokens_mistral': 550, 'n_tokens_neox': 515, 'n_words': 153}