home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / pascal / 6702 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.6 KB  |  40 lines

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!menudo.uh.edu!lobster!buster!jpunix!digsol!newton
  2. From: newton@digsol.jpunix.com (Michael Nichols)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: Comparing record types
  5. Message-ID: <iRoeuB1w165w@digsol.jpunix.com>
  6. Date: Tue, 17 Nov 92 17:07:41 CST
  7. References: <1e6s51INNp16@matt.ksu.ksu.edu>
  8. Organization: Digital Solutions, Inc. Houston, TX.
  9. Lines: 29
  10.  
  11. holland@matt.ksu.ksu.edu (Rich Holland) writes:
  12.  
  13. > sakkinen@jyu.fi (Markku Sakkinen) writes:
  14. > >>That's right. '=' only applies to atomic types (scalar, floating point, 
  15. > >>string, set).
  16. > >I wouldn't call sets and strings 'atomic', but that's nit-picking.
  17. > Okay, someone wanna clue me in here?  What's an "atomic" type?  I'd only
  18. > heard of ordinal and scalar until now...
  19. > -- 
  20. > Rich Holland              | INTERNET: holland@matt.ksu.ksu.edu
  21. > 100 Jardine Terr, Apt A7  | BITNET  : holland@ksuvm
  22. > Manhattan, KS  66502-3357 | UUCP    : ...!rutgers!matt.ksu.ksu.edu!holland
  23. > char*p="char*p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
  24.  
  25. I think a better term would be "non-structured" data type.  By atomic 
  26. element (sounds a lot like LISP) he means a data element that consists of 
  27. one data element only.  Actually, if you really want to get technical, 
  28. strings are not atomic, because they are really an array of chars.  But, 
  29. because most compilers handle them in a way which makes them seem like 
  30. simple data elements (kinda like BASIC), one might consider them to be 
  31. atomic, but they are actually structured in definition.  (You C 
  32. programmers know what I mean.)
  33.  
  34. Mike Nichols
  35. newton@digsol.jpunix.com
  36.