comp.lang.ada
 help / color / mirror / Atom feed
* Objects and the Stack?
@ 2004-12-16 22:27 Freejack
  2004-12-16 23:13 ` Nick Roberts
  2004-12-17  0:28 ` Jeffrey Carter
  0 siblings, 2 replies; 18+ messages in thread
From: Freejack @ 2004-12-16 22:27 UTC (permalink / raw)


It's my understanding that one can eliminate the need for pointers (access
types) through prudent use of tagged types and classes. However it is also
my understanding that Gnat at least, when creating instances of Foo'class,
creates them on the stack.

So, for kicks, I'm gonna write a package that creates a stack, with the
stack being a tagged object which gets extended with each new element
object that's pushed onto it.

I don't see any problems with implementing this as far as the language
itself is concerned. However I'm guessing the actual stack object will
reach a point where it reeks hell with the system stack.

Anyone here have experience with similar constructs and machinations?

Just curious.

Freejack
 



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2004-12-27  4:34 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-16 22:27 Objects and the Stack? Freejack
2004-12-16 23:13 ` Nick Roberts
2004-12-20 14:50   ` Marc A. Criley
2004-12-20 16:22     ` Marius Amado Alves
2004-12-20 18:31       ` Dmitry A. Kazakov
2004-12-17  0:28 ` Jeffrey Carter
2004-12-17  8:45   ` Freejack
2004-12-17 11:11     ` Martin Dowie
2004-12-17 11:46     ` Nick Roberts
2004-12-17 19:52       ` Freejack
2004-12-18  4:02         ` Nick Roberts
2004-12-27  4:34         ` Dave Thompson
2004-12-18 19:41       ` Warren W. Gay VE3WWG
2004-12-18 20:50         ` Freejack
2004-12-18 21:15           ` Dmitry A. Kazakov
2004-12-27  4:34         ` Dave Thompson
2004-12-18  0:12     ` Jeffrey Carter
2004-12-18  0:43       ` Jeffrey Carter

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