Path: utzoo!attcan!uunet!decwrl!megatest!djones From: djones@megatest.UUCP (Dave Jones) Newsgroups: comp.lang.misc Subject: Re: dynamic symbol binding Message-ID: <14150@goofy.megatest.UUCP> Date: 9 Oct 90 22:13:22 GMT References: <1653@seti.inria.fr> Organization: Megatest Corporation, San Jose, Ca Lines: 13 From article <1653@seti.inria.fr>, by jml@bdblues.altair.fr (Jean Marie Larcheveque): ) To my knowledge, there is no language which allows you to ) bind a symbol to an object created dynamically. ) This would happen for example if C++ had a primitive alloc ) with interface Type& alloc(Type). In C++, you say, int& x = *new(int); /* Symbol "x" is bound to new int-object. */ new() is the "primitive alloc" that you desire. It returns a pointer to a new object. The above statement makes "x" a name for the object pointed to.