home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / vms / 13574 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  1.6 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!indyvax.iupui.edu!harvey
  2. From: harvey@indyvax.iupui.edu
  3. Newsgroups: comp.os.vms
  4. Subject: RE: Undocumented DCL feature
  5. Message-ID: <1992Aug12.143326.1@indyvax.iupui.edu>
  6. Date: 12 Aug 92 19:33:26 GMT
  7. References: <9208111812.AA04482@ucbvax.Berkeley.EDU>
  8. Sender: news@usenet.ucs.indiana.edu (USENET News System)
  9. Organization: Indiana University
  10. Lines: 24
  11. Nntp-Posting-Host: indyvax.iupui.edu
  12.  
  13. In article <9208111812.AA04482@ucbvax.Berkeley.EDU>, DESMITH_N@COLLOQUIUM.CO.UK (Nick de Smith) writes:
  14. > Maybe I didn't make myself clear, but I was refering to a "feature" of F$LENGTH,
  15. > nothing else. Most people didn't even read what I wrote before sending long
  16. > details about F$TYPE and strings - not what I was trying to point out at all!
  17. > I'm more than well aware that F$TYPE(100) and F$TYPE("100") are both STRING, it
  18. > was F$LENGTH returning the number of digits in the integer that interested me.
  19. >
  20. > Sigh.
  21. >
  22. > Nick
  23. >
  24.  
  25. This behavior follows from the type-conversion rules of DCL.  F$LENGTH is
  26. documented as taking a string for an argument.  Any integer arguments are
  27. converted to strings before being passed to F$LENGTH.  The length of such
  28. a string is the number of digits in the number.  There's even a little
  29. table of examples in section 6.4.2 of the DCL Concepts manual.  So (IMHO)
  30. it really isn't an undocumented feature.
  31.  
  32. One lexical function that doesn't automatically type-convert all of it's
  33. arguments is F$FAO...
  34. --
  35. James Harvey    IUPUI OIT Technical Support/Networks
  36. harvey@iupui.edu  uucp: iugate!harvey  bitnet: harvey@indyvax
  37.