• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: References, equals, and repeats (Was: Coerce string to strin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: References, equals, and repeats (Was: Coerce string to strin
      • From: Bill Cheeseman <email@hidden>
References: 
 >References, equals, and repeats (Was: Coerce string to strin (From: email@hidden)

  • Prev by Date: scripting additions folder on X is readonly?
  • Next by Date: Re: scripting additions folder on X is readonly?
  • Previous by thread: References, equals, and repeats (Was: Coerce string to strin
  • Next by thread: Re: References, equals, and repeats (Was: Coerce string to strin
  • Index(es):
    • Date
    • Thread