develooper Front page | perl.perl6.internals | Postings from July 2002

[perl #15340] [PATCH] Boolean PMC

Thread Next
From:
Alberto Manuel "Brandão" "Simões"
Date:
July 22, 2002 09:23
Subject:
[perl #15340] [PATCH] Boolean PMC
Message ID:
rt-15340-30983.13.008687025676@perl
# New Ticket Created by  Alberto Manuel Brandão Simões 
# Please include the string:  [perl #15340]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=15340 >


While it can be thought as too simple and stupid PMC, it can be very
usefull. (At least for my project it would be).

Still a simple implementation based on PerlInt. Stores 0 for false, 1
for true. Assignment of other values is available in the same way as
Perl trueness.

Still only one test.
In Attach, boolean.t (test file), boolean.pmc (PMC File) and diff for
other files.

Opefully, this can be accepted ;)
Alberto
-- 
Alberto Manuel B. Simoes
Departamento de Informática - Universidade do Minho
http://alfarrabio.di.uminho.pt/~albie - http://numexp.sf.net


-- attachment  1 ------------------------------------------------------
url: http://rt.perl.org/rt2/attach/30983/25965/ac3f25/diff_file

-- attachment  2 ------------------------------------------------------
url: http://rt.perl.org/rt2/attach/30983/25966/8bc81e/boolean.t

-- attachment  3 ------------------------------------------------------
url: http://rt.perl.org/rt2/attach/30983/25967/dcaea8/boolean.pmc


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About