Path: utzoo!attcan!uunet!husc6!bloom-beacon!mit-eddie!uw-beaver!uw-june!uw-entropy!dataio!pilchuck!ssc!happym!polari!rlb From: rlb@polari.UUCP (rlb) Newsgroups: comp.lang.c++ Subject: unary-expression syntax Keywords: new,initializer,C++ Message-ID: <458@polari.UUCP> Date: 23 May 88 01:00:42 GMT Organization: Polarserv, Seattle WA Lines: 17 In Stroustrup's book, section 7.2 of the reference manual contains: unary-expression: ... new type-name initializer.opt ... which implies that you can say things like: int *x = new int = 47; However, the more detailed explanation of free store in section 7.2.4 contains the sentence "An initializer may be supplied for certain class objects". This sentence seems to imply that an initializer may not be applied for other cases. I could not immediately find any examples elsewhere that showed that "initializer" could be other than "( expression-list )" for the "new" operator. Can anyone point me to such examples or something else in the manual that makes this clear? -Ron Burk {sjs: Can't seem to get a round-trip mail path to you that works...}