comp.lang.ada
 help / color / mirror / Atom feed
* User defined type conversion
@ 2013-05-09 14:07 Vinícius Franchini
  2013-05-09 14:50 ` Adam Beneschan
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Vinícius Franchini @ 2013-05-09 14:07 UTC (permalink / raw)


Hi Folks,
 I have a problem with a type conversion. Hereby is what I'm trying to do:

type AB is tagged
  record
    A : Unsigned_16;
    B : Unsigned_16;
  end record;

type abcde is tagged
  record
    a: Unsigned_8;
    b: Unsigned_8;
    c: Unsigned_8;
    d: Unsigned_8;
  end record;

X : AB;
Y : abcd;

X := Y;

I'd like to do a direct conversion without creating a method for it.



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

end of thread, other threads:[~2013-05-12 15:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-09 14:07 User defined type conversion Vinícius Franchini
2013-05-09 14:50 ` Adam Beneschan
2013-05-09 16:12 ` Shark8
2013-05-09 16:50   ` Adam Beneschan
2013-05-09 18:24 ` Jeffrey Carter
2013-05-09 18:39   ` Vinícius Franchini
2013-05-09 19:15     ` Adam Beneschan
2013-05-09 20:00       ` Vinícius Franchini
2013-05-09 20:19     ` Jeffrey Carter
2013-05-12  7:04 ` ldries46
2013-05-12 14:13   ` AdaMagica
2013-05-12 15:02 ` anon

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