www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/27/21:16:30

From: Vic <tudor AT cam DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP: accessing astructure members via VOID pointer??
Date: Tue, 27 Jan 1998 20:52:21 -0500
Organization: Communications Accessibles Montreal, Quebec Canada
Lines: 11
Message-ID: <34CE8F55.1C12@cam.org>
References: <C1256599 DOT 002EA5EC DOT 00 AT vega DOT ads DOT it>
NNTP-Posting-Host: dialup-167.hip.cam.org
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

G DOT DegliEsposti AT ads DOT it wrote:
> BTW, why are you trying to do something so strange? :-)
> Isn't the usual way enough  (I mean ((struct foo *)bar)->x = 55) ? :-)
Because I'm trying to do a scripting language for a game engine. At
compile time it's easy to say p->x, but at run time I just have a chunk
of memory and no ideea about the member's types,names etc. I have to be
able do declare those structs in my language and access their places in
the game engine... This pointer thing was the first ideea that came to
me...:)
-- 
--> http://www.cam.org/~tudor <--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019