Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!super!rminnich From: rminnich@super.ORG (Ronald G Minnich) Newsgroups: comp.lang.c++ Subject: Re: class "names" at runtime (was Re: Design Problem) Message-ID: <18064@super.ORG> Date: 2 Jan 90 22:23:36 GMT References: <22137@brunix.UUCP> <3164@cbnewsl.ATT.COM> <4329@pegasus.ATT.COM> <10@microsoft.UUCP> Sender: news@super.ORG Reply-To: rminnich@super.UUCP (Ronald G Minnich) Organization: Supercomputing Research Center, Bowie, Md. Lines: 14 In article <10@microsoft.UUCP> jimad@microsoft.UUCP (Jim Adcock) writes: >One trick [from ObjC - gack!] is to maintain your names as pointers to >strings to begin with, but when you access that pointer the first time >you [automagically] change it to a handle for an entry in a lookup table. >Since the table is a limited range of addresses, it is quick and easy to >see if the conversion has already been done, Anybody else out there recognize this one? To me, it looks just like the 'bundles' S.C. Johnson used in the first YACC paper. A bundle was a pointer to some 'thing' or another bundle. You determined what it was by checking to see if the pointer was in the range of addresses for the table of bundles or 'something else'. Just wondering if anyone else noticed this, ron