home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17958 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  1.8 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!swrinde!emory!sol.ctr.columbia.edu!ucselx!crash!orbit!pnet51!chucks
  2. From: chucks@pnet51.orb.mn.org (Erik Funkenbusch)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: SAS 6.1 (ARGH!)
  5. Message-ID: <8840@orbit.cts.com>
  6. Date: 30 Dec 92 10:45:06 GMT
  7. Sender: news@orbit.cts.com
  8. Organization: People-Net [pnet51], Minneapolis, MN.
  9. Lines: 35
  10.  
  11. walker@twix.unx.sas.com (Doug Walker) writes:
  12. >
  13. >In article <8824@orbit.cts.com>, chucks@pnet51.orb.mn.org (Erik Funkenbusch) writes:
  14. >|> Why, oh why could anyone imagine that supplying a struct 
  15. >|> Window * in a TagItem would cause SAS 6.1 to not only complain, but reject the
  16. >|> code as an Error 20:  invalid constant expression?  A TagItem does not use
  17. >|> constants, and a window pointer is certainly not a constant...  This is
  18. >|> annoying to say the least.
  19. >
  20. >I can't tell for sure from your rather vague reference, but my guess
  21. >is that you are attempting to intialize a static or extern struct
  22. >TagItem with a variable.  This is illegal in C.  You cannot use
  23. >expressions that cannot be evaluated at compile time to initialize
  24. >static or extern data items.   If this is a wrong guess, please post
  25. >the code that is producing the message and the actual text of
  26. >the message.
  27. >
  28. >-- 
  29. >  *****
  30. >=*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
  31. > *|. o.| ||                                          1200/2400/9600 Dual
  32. >  | o  |//     For all you do, this bug's for you!
  33. >  ====== 
  34. >usenet: walker@unx.sas.com                            bix: djwalker 
  35. >Any opinions expressed are mine, not those of SAS Institute, Inc.
  36.  
  37.  
  38. Yep, ;)
  39.  
  40. I whipped out my trusty white book, and what do you know.. You can't
  41. auto-initialize pointers, since the pointer is set at run time.
  42.  
  43. This didn't strike me however, since i was thinking in terms of pointers to
  44. pointers for some reason.. oh well..
  45.  
  46.