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