home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp48 / 6781 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.4 KB  |  39 lines

  1. Newsgroups: comp.sys.hp48
  2. Path: sparky!uunet!telesoft!kst
  3. From: kst@telesoft.com (Keith Thompson @pulsar)
  4. Subject: MOD bug in revision A
  5. Message-ID: <1993Jan8.085647.9138@telesoft.com>
  6. Organization: Alsys Group, San Diego, CA, USA
  7. Date: Fri, 8 Jan 1993 08:56:47 GMT
  8. Lines: 29
  9.  
  10. I've run across a minor bug involving the MOD operator in revision A of
  11. the HP48.  It isn't in the official list of bugs from HP, nor do I
  12. recall seeing it mentioned anywhere else.  It doesn't show up on my
  13. friend's revision B.
  14.  
  15. The problem is that when a MOD expression whose right operand is a
  16. number with a leading decimal point is converted to a string, no space
  17. is inserted after the MOD.  The right operand is then joined with the
  18. word "MOD", typically resulting in a syntax error.
  19.  
  20. For example:
  21.  
  22. You enter    Display
  23. ---------    -------
  24. 'X' .1 MOD    'X MOD.1' (should be 'X MOD .1')
  25. ->STR        "'X MOD.1'"
  26. OBJ->        OBJ-> Error: Invalid Syntax
  27.  
  28. If you go into the equation writer instead of entering the ->STR and
  29. OBJ-> commands, the expression becomes 'X*MOD.1', where MOD.1 is
  30. interpreted as an identifier.
  31.  
  32. I ran across this when I tried to edit a program containing an
  33. expression of the form 'X MOD .1'; I have to manually insert a space
  34. every time I edit the program.
  35. -- 
  36. Keith Thompson (The_Other_Keith)  kst@telesoft.com
  37. TeleSoft, 5959 Cornerstone Court West, San Diego, CA, 92121-9891
  38. "Listen to me, people!  We must stick them with quills -- it's the only way!"
  39.