[PD] >, <, &&, || etc

Mathieu Bouchard matju at artengine.ca
Sat Apr 4 23:07:20 CEST 2009


On Sat, 4 Apr 2009, Martin Peach wrote:

> etc...). For instance "greaterthan", "lessthan", "and", "or"; then some 
> aliasing method could provide a means on those systems that can handle it to 
> refer to them as '<' or whatever).

Perl uses gt,lt,ge,le,eq,ne as string comparisons whereas >,<,>=,<=,==,!= 
are used for numeric comparisons. Perl needs both by design. You could 
reuse the same names.

The shell's [] (/usr/bin/test) also has -gt,-lt,-ge,-le,-eq,-ne, which it 
uses for numeric comparisons, whereas it uses >,<,>=,<=,==,!= for string 
comparisons. It also needs both by design.

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec


More information about the Pd-list mailing list