On Friday 20 April 2007 5:45:05 pm yuping he wrote: > Am I > missing some big pictures, your input is greatly appreciated.
Yes, Jess will treat RU.STRING or an RU.SYMBOL identically here. Here's what happens. If Jess sees you're trying to call a method with arg1 being a STRING or SYMBOL, 1) if arg1 is 'nil', throw an exception; you can't call a method on a nil reference. 2) If class String has a method by the given name, call it on the STRING or SYMBOL. 3) If not, assume arg1 is a class name; load it and try to invoke the method name as a static method. Making STRING and SYMBOL act differently would be confusing, in my opinion. --------------------------------------------------------- Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://www.jessrules.com -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
