comp.lang.ada
 help / color / mirror / Atom feed
From: "Vinícius Franchini" <viniciusnf@gmail.com>
Subject: User defined type conversion
Date: Thu, 9 May 2013 07:07:33 -0700 (PDT)
Date: 2013-05-09T07:07:33-07:00	[thread overview]
Message-ID: <c9c8b269-fb9e-4715-b48c-40047fff1658@googlegroups.com> (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.



             reply	other threads:[~2013-05-09 14:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-09 14:07 Vinícius Franchini [this message]
2013-05-09 14:50 ` User defined type conversion 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
replies disabled

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