comp.lang.ada
 help / color / mirror / Atom feed
* Disriminant question
@ 2003-03-07  7:09 prashna
  2003-03-07  8:01 ` tmoran
  2003-03-07 11:17 ` Lutz Donnerhacke
  0 siblings, 2 replies; 9+ messages in thread
From: prashna @ 2003-03-07  7:09 UTC (permalink / raw)


Hi all,
How to change discriminant value dynamically?

For ex, Have look at following program,

procedure DISCRIMINANT1 is
type DISC(some_disc : integer) is
record
  case some_disc is
  when 1 | 2 =>
     int1 : integer;
  when others =>
     flt : float;
  end case;
end record;

DISC1 : DISC(3);
begin
  disc1.some_disc := 1;
  ^^^^^^^^ I have to change the discriminant.Is there any way to do
this.Any tips will be appriciated.
end;

Thanks



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-03-12 16:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-07  7:09 Disriminant question prashna
2003-03-07  8:01 ` tmoran
2003-03-07 11:20   ` Lutz Donnerhacke
2003-03-07 17:59     ` tmoran
2003-03-07 22:32       ` Lutz Donnerhacke
2003-03-07 11:17 ` Lutz Donnerhacke
2003-03-07 16:46   ` Matthew Heaney
2003-03-12  9:25     ` Disriminant question - Waiting desperately for solution :-( prashna
2003-03-12 16:12       ` Gautier

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