comp.lang.ada
 help / color / mirror / Atom feed
From: Mehdi Saada <00120260a@gmail.com>
Subject: Re: "too few element" in an unconstrained array, given as litteral ?
Date: Sat, 20 Jan 2018 08:52:35 -0800 (PST)
Date: 2018-01-20T08:52:35-08:00	[thread overview]
Message-ID: <340b9df2-732e-4355-a85f-020e9f754a9b@googlegroups.com> (raw)
In-Reply-To: <fch88cF57s6U1@mid.individual.net>

We discussed it some weeks ago,
but how do I write:
Temp := (Poly_B.Degre + Ind - 1, (Poly_B.Degre + Ind - 1 => (1/1)), others => <>);
Ind is the index of a for loop, hence there's a dynamic choice, hence ... No other choices possible. So the above is illegal. I want the nicest expression, because the algo part was already hard on me, so I need to find convoluted ways to counter my less that optimal syntaxical knowledge, it's too much.
I need that to implement multiplying a polynom with x, or x**2, and so forth, with a bunch of zero to the left.
That done, I saw all others primitives work... and I'll be in heaven. For a brief moment, though.


  reply	other threads:[~2018-01-20 16:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-20 10:55 "too few element" in an unconstrained array, given as litteral ? Mehdi Saada
2018-01-20 12:28 ` Niklas Holsti
2018-01-20 13:21   ` Mehdi Saada
2018-01-20 16:15     ` Niklas Holsti
2018-01-20 16:52       ` Mehdi Saada [this message]
2018-01-20 21:27         ` Niklas Holsti
2018-01-20 17:48 ` Why in (array) aggregate, no more component allowed after a dynamic choice ? Mehdi Saada
2018-01-23  0:57   ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox