Newsgroups: comp.lang.fortran
From: "Jugoslav Dujic" <jdu...@yahoo.com>
Date: Wed, 14 Nov 2001 21:55:11 +0100
Local: Wed, Nov 14 2001 3:55 pm
Subject: Re: Recasting Fortran pointers
news:l0yI7.2662$Oh1.31441@insync...
| | "Richard Maine" <nos...@see.signature> wrote in message news:uen11puxyq.fsf@altair.dfrc.nasa.gov... | > So for each type, I | > made an array of pointers (using the "usual" trick again; I'm | > assuming you've followed this group enough to understand it). | | not sure what the "usual" trick is :( | | > Where you have "type(xxx), pointer" above, I just substituted a | > a scalar integer. That scalar integer is an index into the | > array of pointers for the appropriate type. Not very "modern", | > but it works fine, is reasonably easy to follow, etc. It helped | > a lot that I was sure to have a relatively small number of | > targets, so I could get by with making the arrays of pointers | > statically sized. It also helped that targets were added and | > deleted with relatively low frequency, so that the performance | > issue of finding an "open" slot for a new one by searching | > the array was not a problem. | > | > I could probbaly drag out some sample code to illustrate if the | > above words aren't enough, but probably not today. Other commitments | > are about to call. | | Great, whenever you have a spare moment... | | Adrian Since I happen to know that you use CVF, you might as well stick They're especially useful for lpUserData stuffs which can TYPE(MyWindowProperties):: tMWP !... somewhere else, miles away, in the code: Now, it may look like I'm advocating them -- I dislike the Jugoslav You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||