Re: limited types in containers

ada_wizard_at_toadmail.com
Date: 12/11/03


Date: Thu, 11 Dec 2003 10:21:31 -0500
To: comp.lang.ada@ada-france.org

Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de> writes:

> Charles does (some of it).

So does Charles work for you? If not, why not?

> The "solutions" I have now are using a _comment_ indicating that
> clients _should_ use a constructor function, here is one of the
> solutions that doesn't use pointers to T objects:
>
> type T is tagged private;
> -- use make!
>
> function make
> (look_here: D;
> look_there: E;
> and_also_over_there: D) return T;
>
> where the full view of T contains pointer fields, and make provides
> '(unchecked)_access values for them.

SAL provides containers that allow the user to specify 'make' as the
way to create objects; give it a try.
(http://www.toadmail.com/~ada_wizard/). Feel free to email me for help
on how to use it; the user manual is just the Ada source at the moment.

-- 
-- Stephe
___________________________________________________________
This mail sent using ToadMail -- Web based e-mail @ ToadNet


Relevant Pages

  • Calling BPX1SPN services
    ... to run a specified executable file from PL/I program. ... The name of a fullword that contains the number of pointers in the ... lists for the Argument_length_list and the Argument_list. ... program needs no arguments, specify 0. ...
    (bit.listserv.ibm-main)
  • Re: Calling BPX1SPN services
    ... I think that you need to specify each parameter as a separate argument. ... which is more focused on Unix System Services. ... >b) Argument_length_list must be a structure of pointers that gives the ... > address of a fullword that gives the length of an argument that is to ...
    (bit.listserv.ibm-main)
  • Re: OT: C syntax question
    ... no idea how big the array of pointers actually is. ... If you pass a two-dimensional array as an argument, you must specify at ... least the number of elements in the "minor" dimension, ...
    (freebsd-questions)
  • Re: Entity and Identity
    ... object's state is all we have to go on as the basis for identification. ... trajectory (a history of pointers over time) are unavailable for purposes ... simpler ones it is entirely appropriate to identify state machines ... containing state machine will normally specify exactly which stack ...
    (comp.databases.theory)
  • Re: Surrogate Keys: an Implementation Issue
    ... the DBA can specify how to physically arrange pointers into indexes, ... the DBA can specify what data to cluster together ... playing Grand Master Chess and playing tournament level Go. ...
    (comp.databases.theory)