!0

David Alban extasia at extasia.org
Thu Feb 12 17:59:47 GMT 2009


On Thu, Feb 12, 2009 at 6:52 AM, Andy Armstrong <andy at hexten.net> wrote:
> It's probably just an idiosyncratic way of getting a true value. In C I
> always used to
>
> #define TRUE (0==0)
> #define FALSE (!TRUE)
>
> because, for some reason, I found it amusing.

being a fan of Readonly, i like doing:

Readonly my $EMPTY_STRING => q{};

Readonly my $TRUE => 1;
Readonly my $FALSE => $EMPTY_STRING;

-- 
Live in a world of your own, but always welcome visitors.


More information about the london.pm mailing list