generic arrays?

From: chris (spamoff.danx_at_ntlworld.com)
Date: 02/20/04


Date: Fri, 20 Feb 2004 15:58:13 +0000

Hi,

Is it possible to do something like the following?

generic
   NI : Positive;
package P is

   type IV is array (1..NI) of float;

end P;

generic
   type X is ...
package T is

type TP is record
   A : X;
end TP;

end T;

with the ability to make the type of X = type of IV? I want to
instansiate T with IV after instantiating P, but don't know what to make
X. Is there any way to avoid using an access type to hold X in the
record TP? (in the case where type x is an unconstrained array of floats).

Cheers,
Chris



Relevant Pages

  • Re: generic arrays?
    ... > package P is ... > type IV is array of float; ... > instansiate T with IV after instantiating P, but don't know what to make ... (in the case where type x is an unconstrained array of floats). ...
    (comp.lang.ada)
  • dblfloatfix bug
    ... had loaded the dblfloatfix package in order to allow for twocolumn ... floats at the bottom of the page. ...
    (comp.text.tex)
  • defpackage and intern- internal and external
    ... I found a copy of Pascal Bourguignon's ieee754 to fp conversion macro ... which I'm using to read 32 and 64 bit floats out of a couple different ... I've put his macros in a seperate package because ... MAPUTILS package that imports this FPCONVERT package is unable to ...
    (comp.lang.lisp)
  • CTAN update: trivfloat
    ... Summary description: Quick floats in LaTeX ... License type: lppl ... Package internals re-ordered and improved ... the catalogue entry will appear on the web overnight. ...
    (comp.text.tex)
  • CTAN update: The floatrow package
    ... Modifying the layout of floats ... License type: lppl ... inside floatrow environment. ... This package is located at ...
    (comp.text.tex)