go with full toString() equality.
Let's move this to the developer's list if there's any further discussion.
Best,
WILL
----- Original Message ----- From: "Shinobu Kawai" <[EMAIL PROTECTED]>
To: "Velocity Users List" <[EMAIL PROTECTED]>
Sent: Thursday, December 09, 2004 2:29 PM
Subject: Re: EscapeTool (and velocity-tool best practices)
Hi Will,
To carry this further, I've proposed previously that the "==" operator have a fallback to toString equality. In other words if the user does #if ($a == $b)
If a and b are the same class, it should call equals(), but otherwise it should call toString.equals().
Here's a somewhat related bugzilla issue: http://issues.apache.org/bugzilla/show_bug.cgi?id=32179 (Workaround the lack of equality in CharSequence.)
Best regards, -- Shinobu Kawai
-- Shinobu Kawai <[EMAIL PROTECTED]>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]