Operator Overloading

From: Lunde, Bruce N CIV NAVOCEANO, NP1 <bruce.lunde_at_nyahnyahspammersnyahnyah>
Date: Fri, 17 Aug 2007 10:11:46 -0500

Hello,

Does NCL allow "overloading" of operations such as "+", so that it can
be redefined for special data objects other than the normal arrays or
strings ? This could be useful if one defined a_at_type="special", so
that "a + b" is different depending if their "type" attributes are
"special".

Thanks, Bruce

=====
Bruce Lunde
Bruce.Lunde_at_navy.mil
228-688-5843
Code NP1
Naval Oceanographic Office
Stennis Space Center, MS
=====
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Aug 17 2007 - 09:11:46 MDT

This archive was generated by hypermail 2.2.0 : Mon Aug 20 2007 - 09:30:37 MDT