comp.lang.ada
 help / color / mirror / Atom feed
From: Mehdi Saada <00120260a@gmail.com>
Subject: qualified expression
Date: Mon, 8 Feb 2021 01:02:55 -0800 (PST)	[thread overview]
Message-ID: <05ea3d57-6d03-4f8e-8a8c-6282a11f447dn@googlegroups.com> (raw)

Is it possible to express within a qualified expression,
not a slice with all elements being the same, but a slice from another variable ?

type t_type (det: det_type := default_value) is record
          T_vect: t_arrays(0..det) := (others => null_value);
end record;
var2 : t_vect(1..det+1) :=...;
Like, usually it is: T_type'(det1, 0..det1 => Element)
there it would looks like T_type'(det1, 0..det1 =>  Var2(1..det1));
btw, shouln't the context here be sufficient for the expression to resolve ?

             reply	other threads:[~2021-02-08  9:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-08  9:02 Mehdi Saada [this message]
2021-02-08 10:21 ` qualified expression AdaMagica
2021-02-08 11:47   ` Mehdi Saada
2021-02-08 16:18     ` AdaMagica
2021-02-08 12:36   ` Jeffrey R. Carter
replies disabled

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