From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8de933d44255f226 X-Google-Attributes: gid103376,public From: jsa@organon.com (Jon S Anthony) Subject: Re: Q: unboxed values and polymorphism Date: 1996/06/15 Message-ID: #1/1 X-Deja-AN: 160383222 sender: news@organon.com (news) references: organization: Organon Motives, Inc. newsgroups: comp.lang.ada Date: 1996-06-15T00:00:00+00:00 List-Id: In article Hannes Haug 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