Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!wuarchive!uunet!mcsun!i2unix!inria!seti!bdblues!jml From: jml@bdblues.altair.fr (Jean Marie Larcheveque) Newsgroups: comp.lang.misc Subject: dynamic symbol binding Message-ID: <1653@seti.inria.fr> Date: 1 Oct 90 10:46:35 GMT Sender: news@seti.inria.fr Organization: Gip Altair/INRIA, France Lines: 18 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). Then we could write int& x = //... some initialization //... x = alloc int; //... previous lvalue of x is lost, // perhaps deallocated I am not suggesting that this is useful, and in fact I don't think it is, but I am curious to know if this kind of thing is possible in any language. -- Jean-Marie Larcheveque or