comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: Odd/Broken behavior DOTNET-GNAT vs GNAT regarding tagged types.
Date: Fri, 22 Oct 2010 09:22:53 -0700 (PDT)
Date: 2010-10-22T09:22:53-07:00	[thread overview]
Message-ID: <8f6d51ed-69f9-4e76-a03e-b5601aa714e1@w30g2000prj.googlegroups.com> (raw)
In-Reply-To: 512951a6-bcc3-4c1a-a5ce-5bd3402d7143@j25g2000yqa.googlegroups.com

On Oct 21, 8:35 pm, Shark8 <onewingedsh...@gmail.com> wrote:
> Hey everyone; I just got bit with a bit of a surprise regarding the
> differences in how tagged types are treated by GNAT vs DOTNET-GNAT,
> The output of 'external_tag shows why the behavior of the Ada.Tags
> Package is broken under DOTNET.

Not sure what you're trying to do here, or why this is causing a
problem.  The RM says that the default 'External_Tag is implementation-
defined, so you shouldn't depend on it being a certain value, or else
you should write your own "for Tagged_Base'External_Tag use ..."
clause.  My apologies if you already knew this and had some other
reason for being surprised.

                                  -- Adam

[snip]

> -- .NET output
> ----------------------
> C:\PROGRA~3\TEMPOR~1\testing>tag_error.exe
> External tag for base type: tagged_base_pkg.tagged_base
> External tag for child type: tagged_base_pkg.tagged_child
>
> Tagged child is NOT a decendant.
>
> -- Native output
> ----------------------
> C:\PROGRA~3\TEMPOR~1\testing>tag_error.exe
> External tag for base type: TAGGED_BASE_PKG.TAGGED_BASE
> External tag for child type: TAGGED_BASE_PKG.TAGGED_CHILD
>
> Tagged child is a decendant.




  parent reply	other threads:[~2010-10-22 16:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-22  3:35 Odd/Broken behavior DOTNET-GNAT vs GNAT regarding tagged types Shark8
2010-10-22  8:01 ` Georg Bauhaus
2010-10-22 16:22 ` Adam Beneschan [this message]
2010-10-22 19:58   ` Shark8
2010-10-22 23:20     ` Adam Beneschan
2010-10-23  1:57       ` Shark8
2010-10-25 15:34         ` Adam Beneschan
replies disabled

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