• 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: Real Simple Question ("null" isn't TID default)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Real Simple Question ("null" isn't TID default)


  • Subject: Re: Real Simple Question ("null" isn't TID default)
  • From: Doug McNutt <email@hidden>
  • Date: Thu, 7 Nov 2002 16:42:11 -0700

At 20:56 +1100 11/7/02, David Lloyd wrote:
>So "" is not necessarily null, it could be any character less than ascii
>number 32 (or it could in fact be nothing at all.)

I think the proper lexicography is that

"" is the null STRING. A string of zero length with nothing in it.

NULL is the ASCII character - er byte - 00 (hex) which, if the only character in a string, would give the string a length of one.

The phrase "text item delimiters" refers to a string and not to a character.

--> Caution - potentially confusing stuff follows.

I suspect that AppleScript uses Pascal strings in which the first byte represents the number of characters, up to 255(10), in the string to follow so that the Pascal string representing the null string is in fact a single 000 character.

The other technique - C strings - uses the null character to terminate a string of arbitrary length and a null character by itself is impossible to represent within a string, but a string that starts with a null character is interpreted as the null string.

Crystal celar?

--

Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
_______________________________________________
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.

References: 
 >Re: Real Simple Question ("null" isn't TID default) (From: David Lloyd <email@hidden>)

  • Prev by Date: easy bounding box question
  • Next by Date: Alias to Dock in Mac OS X
  • Previous by thread: Re: TIDs info summary
  • Next by thread: Re: Real Simple Question ("null" isn't TID default)
  • Index(es):
    • Date
    • Thread