Convert T/F

Dave Cragg dcragg at lacscentre.co.uk
Wed Apr 3 06:11:01 EST 2002


At 4:20 pm -0800 2/4/02, Scott Rossi wrote:
>Can "true" and "false" be converted into their numeric equivalents (1/0)?

to which he got a lot of replies showing, that if you try hard 
enough, you can make Metatalk just as unreadable as Perl or C.

itemOffset, bitwise operations, abs, referenced parameters ..... 
although, disappointingly,  no matrixMultiply (yet).

You're all mad. :)

function convertTF pWhich ##patent pending
  if pWhich is true then
   return 1
  else
   return 0
  end if
end convertTF

I bet it's faster too.

And I bet Scott was really looking for something else.

Cheers
Dave



More information about the metacard mailing list