Article View: comp.lang.misc
Article #1637dynamic symbol binding
From: Jean Marie Larcheveque
Date: Mon, 01 Oct 1990 10:46
Date: Mon, 01 Oct 1990 10:46
18 lines
985 bytes
985 bytes
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 <jml@bdblues.altair.fr> or
<jml@nuri.inria.fr>
Technical Details
Message-ID:
<1653@seti.inria.fr>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!wuarchive!uunet!mcsun!i2unix!inria!seti!bdblues!jmlShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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