comp.lang.ada
 help / color / mirror / Atom feed
From: Samuel Tardieu <sam@rfc1149.net>
Subject: Re: Abusing tagged types
Date: Fri, 28 Nov 2008 11:50:18 +0100
Date: 2008-11-28T11:50:01+01:00	[thread overview]
Message-ID: <87y6z4cefp.fsf@willow.rfc1149.net> (raw)
In-Reply-To: e4dd59e7-2a64-4964-9e24-1502a9c3bce2@w35g2000yqm.googlegroups.com

>>>>> "Maciej" == Maciej Sobczak <see.my.homepage@gmail.com> writes:

Maciej> The type can be made tagged *only* to get the syntax sugar.
Maciej> Is it considered to be an abuse of the language feature?

This will increase the memory size of every instance. Even if no
dispatching is used the tag will be stored in each object because
dispatching *could* be used.

  Sam
-- 
Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/



  reply	other threads:[~2008-11-28 10:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-28 10:01 Abusing tagged types Maciej Sobczak
2008-11-28 10:50 ` Samuel Tardieu [this message]
2008-11-28 13:28   ` Maciej Sobczak
2008-11-28 14:08     ` Ludovic Brenta
2008-12-01 19:54       ` Adam Beneschan
2008-12-02  4:04         ` Randy Brukardt
2008-11-28 14:35     ` Jean-Pierre Rosen
replies disabled

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