From: jsa@organon.com (Jon S Anthony)
Subject: Re: Q: unboxed values and polymorphism
Date: 1996/06/15
Date: 1996-06-15T00:00:00+00:00 [thread overview]
Message-ID: <JSA.96Jun15190858@organon.com> (raw)
In-Reply-To: uvvyblp84l7.fsf@chaq.informatik.uni-tuebingen.de
In article <uvvyblp84l7.fsf@chaq.informatik.uni-tuebingen.de> Hannes Haug <Hannes.Haug@Student.Uni-Tuebingen.de> writes:
> I'm new to Ada and have a questions on polymorphism. The standard
> way to have polymorphism in Ada are tagged records. But for my needs
If it helps, it also works this way in C++, Eiffel, Sather, and any
other "statically" typed OO language.
> this requires too much space.
Then you are in trouble no matter what.
> require too much time and space. I'd like to convert access values to
> integers and do my own tagging. I could simply translate my C code.
This sounds like a _really_ _really_ bad idea. In your C, are you
using "meta" bits (ala' Lisp impls) or what?
> But it would be nice to see how an experienced Ada programmer would do
> this in Ada. Can I find some code that does this somewhere ?
I'm not sure what it is you are trying to do. Make a list? Make
a generic list? Make a typed polymorphic list? Make an untyped
uncheckd programmer beware list? What?
/Jon
--
Jon Anthony
Organon Motives, Inc.
1 Williston Road, Suite 4
Belmont, MA 02178
617.484.3383
jsa@organon.com
next prev parent reply other threads:[~1996-06-15 0:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-15 0:00 Q: unboxed values and polymorphism Hannes Haug
1996-06-15 0:00 ` Jon S Anthony [this message]
1996-06-15 0:00 ` Robert Dewar
1996-06-16 0:00 ` Hannes Haug
1996-06-17 0:00 ` Tucker Taft
1996-06-17 0:00 ` Tucker Taft
1996-06-17 0:00 ` Hannes Haug
1996-06-18 0:00 ` Fergus Henderson
1996-06-18 0:00 ` Robert Dewar
1996-06-22 0:00 ` Robert A Duff
1996-06-22 0:00 ` Robert Dewar
1996-06-17 0:00 ` Tucker Taft
1996-06-22 0:00 ` Hannes Haug
1996-06-22 0:00 ` Robert Dewar
[not found] ` <uvvhgryr22d.fsf@chaq.informatik.uni-tuebingen.de>
1996-06-28 0:00 ` Robert Dewar
1996-07-02 0:00 ` Fergus Henderson
1996-06-18 0:00 ` Jon S Anthony
1996-06-19 0:00 ` Hannes Haug
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox