Re: References, equals, and repeats (Was: Coerce string to strin
Re: References, equals, and repeats (Was: Coerce string to strin
- Subject: Re: References, equals, and repeats (Was: Coerce string to strin
- From: Chris Page <email@hidden>
- Date: Thu, 14 Feb 2002 20:17:15 -0800
On Thursday, February 14, 2002, at 07:36 , email@hidden wrote:
Most languages seem to have this same strict definition of
equality. For
example, Java and Javascript both consider two reference types to
be equal only
if they refer to the same object. C certainly doesn't think &x ==
x (except
coincidentally). Visual Basic only allows "=" for numbers and
strings, but
provides "Is" as a "refers to the same object" strict equality
operator.
That's why some languages, such as Dylan and Lisp, have separate
operators for "equivalent values" vs. "are the same object". In
Dylan's case, the operators are "=" and "==". In fact, I believe
Lisp has one or two other kinds of "equals" beyond this.
--
Chris Page - Mac OS Lead, Palm Desktop - Palm, Inc.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.