Re: a history question

From: Arjen Markus (arjen.markus_at_wldelft.nl)
Date: 09/30/04


Date: Thu, 30 Sep 2004 08:39:42 +0200

Richard E Maine wrote:
>
> Arjen Markus <arjen.markus@wldelft.nl> writes:
>
> > I have built a small library for dealing
> > with trees. I can store any data type in the nodes of these
> > trees. The trick is to use the not-so-well-known intrinsic function
> > transfer().
>
> I used to do things like that in the earliest days of f90. Eventually
> I gave up and dropped back to using integer indices for the code in
> question. For the particular application in question, indices worked well
> enough, though I still regard it is a bit of a f77-ish workaround. It
> is one of the places where I recognized that the f2003 object-oriented
> stuff should make things much cleaner, more flexible, etc.
>
> Things that made me give up on using transfer() like that were...
>

(... a lot of noteworthy points skipped ...)

>
> Transfer is high on my list of things to use only as a last resort.
> I've got a few uses of it, but not many.
>

Well, I have used this code with several compilers, one very old one.
I know nothing about the speed, as my tests were small-scale so far.
None of the three or four compilers showed any sign of trouble.

The code is rather involved, I agree, but most of the horrid details
can be hidden by providing wrappers to the users. As long as you can
indeed hide the complexity, all seems to be fine. And I would not
use transfer() for anything but those cases where you need to
circumvent the type checking in a very controlled way.

Regards,

Arjen



Relevant Pages

  • Re: Can you help make this work?
    ... unique to a particular solution - without implying anything that might refer ... Compilers were platform/model dependent, often swapped, and few had any kind ... Data type mismatch was the biggest headache for any ...
    (microsoft.public.vb.general.discussion)
  • Re: Programming Tools Dream
    ... and PHP is the worst, compared to ruby and PHP where it is easier.. ... I have seen that the way in which different compilers store data internally in different types of data type is no uniform across compiles. ... If can be solved if there is one company writing all the compilers than this can be easily be standardized across languages and a standard can be established so that other compiler writers will have to follow. ...
    (borland.public.delphi.non-technical)
  • Re: define a data type of 1 bit size
    ... >> of data type. ... What is the same on all compilers is that you cannot have any objects ... Jack Klein ...
    (comp.lang.c)
  • Re: Preprocessor limitation workarounds
    ... I might need to pick a data type that I can use for an intermediate ... For example, in my "big math" ... capabilities of the preprocessor (legacy compilers). ...
    (comp.lang.c)
  • can i save image as datatype in access?
    ... i wanna ask question about data type in access,,so can i save images ... in fields in database built using access?? ... best regard ...
    (comp.soft-sys.matlab)