home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / rec / games / intfict / 1086 < prev    next >
Encoding:
Text File  |  1992-12-22  |  2.2 KB  |  59 lines

  1. Newsgroups: rec.games.int-fiction
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!s.psych.uiuc.edu!amead
  3. From: amead@s.psych.uiuc.edu (Alan Mead)
  4. Subject: TADS help requested
  5. Message-ID: <Bzoq2z.5rt@news.cso.uiuc.edu>
  6. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  7. Organization: UIUC Department of Psychology
  8. Date: Tue, 22 Dec 1992 23:47:22 GMT
  9. Lines: 48
  10.  
  11. Well, I still haven't gotten the hang of this language...  TADS 2.0
  12. has just made it worse.
  13.  
  14. First, a gripe: What is the attraction of case-sensitivity?  I mean I
  15. probably spent 20 minutes trying to make my "verDoLookThru" method work
  16. until I double-checked and found that it was supposed to be
  17. "verDoLook>>t<<hru"  AND, right below, is LookUnder (in fact, in re-
  18. scanning the list of verbs, the capitalization seems pretty damn
  19. capricious: LookBehind, Lookin, Lookthru, LookUnder).  Is there some
  20. strange tradition I'm not aquainted with that provides rules for
  21. capitalization?
  22.  
  23. [BTW, I know I can dispell all the below errors with a compiler directive,
  24. but I want to understand WHY I get them.]
  25.  
  26. Anyway, I have a function like
  27.  
  28. exitsfunc( actor )
  29. ...
  30. ;
  31.  
  32. called as
  33.  
  34. if (...)
  35.   exitsfunc( Me )
  36. ...
  37. ;
  38.  
  39. And I get a run time error, "Wrong number of parameters", whenever I
  40. call exitsfunc()?  Is this normal?  I don't see anywhere in the manual, 
  41. either a coherent discusscusion of arguments to functions or an example
  42. that seems qualitatively different from my situation.  Is this a bug?
  43.  
  44. Ok, then I'm pretty much completely lost regarding the number of parameters
  45. that a method is passed...  Ie, for methods called by the interpreter (in
  46. response to the player's commands), how many parameters are used and
  47. why?  Like, is "actor" ALWAYS a parameter?  Or is there no parameters
  48. for methods like look...
  49.  
  50. I've also had a lot of trouble understanding the stack usage.  I have two
  51. bits of code, one a fucntion and one a method, and both do pretty much 
  52. the same thing (print something and then return nil) and one works fine
  53. and the other produces an error about "Stack underflow" unless I "exit"
  54. after returning the nil?  Why the hell is that?
  55.  
  56. Thanks a lot; I'm fairly confused and rather frustrated.
  57.  
  58. -alan mead
  59.