I do want the Create method of View_Type privately, so what I tried to do
was

   type Dialog_Type is new Gnoga.Gui.View.View_Base_Type with private;

private

   type Dialog_Type is new Gnoga.Gui.View.View_Type with record
      Main_View : Gnoga.Gui.View.View_Access := null;
   end record;

I was hoping by making the actual inheritance private that it would prevent
the issue, but I was still getting ambiguous calls to Create.  I am hoping
someone at CLA can see if that is a bug or not.

That said, I think I have a better implementation.  I just need to iron
some things out on it before it is ready.

On Thu, May 25, 2017 at 2:52 PM, Pascal <blady-...@users.sf.net> wrote:

> Hello Jeremiah,
>
> What about of deriving Modal_Dialog from View_Base_Type in a package named
> Gnoga.Gui.View.Modal_Dialog.Dialog_Type?
>
>    type Dialog_Type is new Gnoga.Gui.View.View_Base_Type with record
>       Main_View : Gnoga.Gui.View.View_Access := null;
>    end record;
>
> It may solve the issue of Gauthier?
>
> > modal.adb:69:16: ambiguous call to "Create"
> > modal.adb:69:16: possible interpretation (inherited) at line 17
> > modal.adb:69:16: possible interpretation (inherited) at line 17
>
>
> Well, the simplest is to put it in Gnoga dev_1.3 branch and lets use it ;-)
>
> Could you please send source codes in files with standard Gnoga header and
> so on?
> See https://sourceforge.net/p/gnoga/wiki/Coding-Guidelines.
>
> Thanks, Pascal.
> http://blady.pagesperso-orange.fr
>
>
> > Le 17 mai 2017 à 05:19, Jeremiah Breeden <jeremiah.bree...@gmail.com> a
> écrit :
> >
> > So after trying a bunch of implementations, I am leaning towards the
> following:
> >
> >
>
> <...>
>
> > Thoughts?
> >
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to