🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #1671

Re: dynamic symbol binding

#1671
From: Dave Jones
Date: Tue, 09 Oct 1990 22:13
13 lines
867 bytes
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.
Technical Details
Message-ID: <14150@goofy.megatest.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!megatest!djones
References: <1653@seti.inria.fr>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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