Re: a history question

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


Date: Wed, 29 Sep 2004 14:48:18 +0200

Richard Edgar wrote:
>
> Arjen Markus wrote:
>
> > Well, in my library I keep track of the proper types myself (it is
> > done as a string indicating the data type), but the thing is that the
> > compiler still has access to the interfaces of all routines (they are
> > contained in a module) and I can still store different types of data
> > with one version of my source code.
>
> So it's a runtime check to stop (say) REALs being added to a tree which
> is supposed to be holding INTEGERs?
>
> Richard

If you want a tree that holds only integers, yes, but you can use it to
store reals and integers at the same time ...

Regards,

Arjen



Relevant Pages

  • Re: a history question
    ... Arjen Markus wrote: ... > Richard Edgar wrote: ... > If you want a tree that holds only integers, yes, but you can use it to ... > store reals and integers at the same time ... ...
    (comp.lang.fortran)
  • Re: rational numbers
    ... > Arjen Markus wrote: ... > like to avoid truncation if possible, ... final exponentiation, you have little chance of succeeding. ... I can imagine a data type that simulates the numbers ...
    (comp.lang.fortran)
  • Re: a history question
    ... > Arjen Markus wrote: ... I can store any data type in the nodes of these trees. ...
    (comp.lang.fortran)
  • Re: a history question
    ... > Arjen Markus wrote: ... I can store any data type in the nodes of these trees. ... The trick is ...
    (comp.lang.fortran)