* Re: Dynamic String
2005-11-01 8:02 ` Harald Korneliussen
@ 2005-11-01 10:55 ` Pascal Obry
2005-11-01 17:20 ` Martin Dowie
` (3 subsequent siblings)
4 siblings, 0 replies; 18+ messages in thread
From: Pascal Obry @ 2005-11-01 10:55 UTC (permalink / raw)
To: Harald Korneliussen
Harald,
> btw, I think Ada is great, but it's not for rapid application
> development. I wish it could be that too, but without even a container
> library... I understand that containers have been left out of Ada0Y
> again?
No, Ada.Containers *is* part of the new standard.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Dynamic String
2005-11-01 8:02 ` Harald Korneliussen
2005-11-01 10:55 ` Pascal Obry
@ 2005-11-01 17:20 ` Martin Dowie
2005-11-01 20:09 ` Matthew Heaney
` (2 subsequent siblings)
4 siblings, 0 replies; 18+ messages in thread
From: Martin Dowie @ 2005-11-01 17:20 UTC (permalink / raw)
Harald Korneliussen wrote:
> I understand that containers have been left out of Ada0Y
> again?
Where on earth did you hear that?!?! Someone tell Randy!!...
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Dynamic String
2005-11-01 8:02 ` Harald Korneliussen
2005-11-01 10:55 ` Pascal Obry
2005-11-01 17:20 ` Martin Dowie
@ 2005-11-01 20:09 ` Matthew Heaney
2005-11-02 0:34 ` not null access procedure (was: Re: Dynamic String) Anonymous Coward
2005-11-01 22:31 ` Dynamic String Björn Persson
2005-11-02 0:18 ` Stephen Leake
4 siblings, 1 reply; 18+ messages in thread
From: Matthew Heaney @ 2005-11-01 20:09 UTC (permalink / raw)
Harald Korneliussen wrote:
> I understand that containers have been left out of Ada0Y again?
Your understanding is incorrect.
Ada 2005 will indeed include a standard container library. You can
find the latest AI-302 draft (released just a couple of days ago) here:
http://www.ada-auth.org/cgi-bin/cvsweb.cgi/AIs/AI-20302.TXT?rev=1.23
In fact, GCC 4 already comes bundled with the library; see the units in
the Ada.Containers.* subsystem.
-Matt
^ permalink raw reply [flat|nested] 18+ messages in thread
* not null access procedure (was: Re: Dynamic String)
2005-11-01 20:09 ` Matthew Heaney
@ 2005-11-02 0:34 ` Anonymous Coward
2005-11-02 1:07 ` Robert A Duff
0 siblings, 1 reply; 18+ messages in thread
From: Anonymous Coward @ 2005-11-02 0:34 UTC (permalink / raw)
In article <1130875772.717413.45520@g14g2000cwa.googlegroups.com>, Matthew Heaney wrote:
>
> Ada 2005 will indeed include a standard container library. You can
> find the latest AI-302 draft (released just a couple of days ago)
> here:
>
> http://www.ada-auth.org/cgi-bin/cvsweb.cgi/AIs/AI-20302.TXT?rev=1.23
I noticed some syntax in the package specification of that link above,
which is unfamiliar to me:
procedure Update_Element
(Container : in out Vector;
Index : in Index_Type;
Process : not null access procedure (Element : in out Element_Type));
What is meant by this "not null"? Is this available in ADA95, or new
to ADA05?
I also had a more general question with access procedures. Does an
access procedure still have scope in the package it is defined in?
Will it be able to access other subprograms and variables that it
normally would, when it is executed by the container package,
considering the container package has no visibility into its user?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: not null access procedure (was: Re: Dynamic String)
2005-11-02 0:34 ` not null access procedure (was: Re: Dynamic String) Anonymous Coward
@ 2005-11-02 1:07 ` Robert A Duff
2005-11-02 8:10 ` not null access procedure Dmitry A. Kazakov
0 siblings, 1 reply; 18+ messages in thread
From: Robert A Duff @ 2005-11-02 1:07 UTC (permalink / raw)
Anonymous Coward <bogus_addy@bogus_domain.net> writes:
> In article <1130875772.717413.45520@g14g2000cwa.googlegroups.com>, Matthew Heaney wrote:
> >
> > Ada 2005 will indeed include a standard container library. You can
> > find the latest AI-302 draft (released just a couple of days ago)
> > here:
> >
> > http://www.ada-auth.org/cgi-bin/cvsweb.cgi/AIs/AI-20302.TXT?rev=1.23
>
> I noticed some syntax in the package specification of that link above,
> which is unfamiliar to me:
>
> procedure Update_Element
> (Container : in out Vector;
> Index : in Index_Type;
> Process : not null access procedure (Element : in out Element_Type));
>
> What is meant by this "not null"? Is this available in ADA95, or new
> to ADA05?
New to Ada 2005. "Not null" means there's a run-time check that the
pointer is not null. It's pretty annoying that in order to pass a
procedure as a parameter, you have to say the noise words "not null access",
but that was considered necessary for compatibility.
> I also had a more general question with access procedures. Does an
> access procedure still have scope in the package it is defined in?
> Will it be able to access other subprograms and variables that it
> normally would, when it is executed by the container package,
> considering the container package has no visibility into its user?
Yes. This is the "downward closure" feature that we've all been waiting
for.
- Bob
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: not null access procedure
2005-11-02 1:07 ` Robert A Duff
@ 2005-11-02 8:10 ` Dmitry A. Kazakov
0 siblings, 0 replies; 18+ messages in thread
From: Dmitry A. Kazakov @ 2005-11-02 8:10 UTC (permalink / raw)
On 01 Nov 2005 20:07:47 -0500, Robert A Duff wrote:
> Anonymous Coward <bogus_addy@bogus_domain.net> writes:
>
>> I noticed some syntax in the package specification of that link above,
>> which is unfamiliar to me:
>>
>> procedure Update_Element
>> (Container : in out Vector;
>> Index : in Index_Type;
>> Process : not null access procedure (Element : in out Element_Type));
>>
>> What is meant by this "not null"? Is this available in ADA95, or new
>> to ADA05?
>
> New to Ada 2005. "Not null" means there's a run-time check that the
> pointer is not null. It's pretty annoying that in order to pass a
> procedure as a parameter, you have to say the noise words "not null access",
> but that was considered necessary for compatibility.
Were subroutine types considered?
procedure Update_Element
(Container : in out Vector;
Index : in Index_Type;
Process : in procedure (Element : in out Element_Type));
type Call_Back is procedure (...);
etc
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Dynamic String
2005-11-01 8:02 ` Harald Korneliussen
` (2 preceding siblings ...)
2005-11-01 20:09 ` Matthew Heaney
@ 2005-11-01 22:31 ` Björn Persson
2005-11-02 10:56 ` Stefan Bellon
2005-11-02 0:18 ` Stephen Leake
4 siblings, 1 reply; 18+ messages in thread
From: Björn Persson @ 2005-11-01 22:31 UTC (permalink / raw)
Harald Korneliussen wrote:
> If I really needed it, and
> could afford it, and was personally accountable anyway (so blaming my
> suppliers would not be an option), I would perhaps hire you to write a
> custom XML-parser in Ada, Larry ;-)
You mean, assuming XML/Ada didn't meet your needs?
--
Bj�rn Persson PGP key A88682FD
omb jor ers @sv ge.
r o.b n.p son eri nu
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Dynamic String
2005-11-01 22:31 ` Dynamic String Björn Persson
@ 2005-11-02 10:56 ` Stefan Bellon
0 siblings, 0 replies; 18+ messages in thread
From: Stefan Bellon @ 2005-11-02 10:56 UTC (permalink / raw)
To: Björn Persson
Björn Persson wrote:
> Harald Korneliussen wrote:
> > If I really needed it, and
> > could afford it, and was personally accountable anyway (so blaming
> > my suppliers would not be an option), I would perhaps hire you to
> > write a custom XML-parser in Ada, Larry ;-)
>
> You mean, assuming XML/Ada didn't meet your needs?
And further assuming that XML4Ada95/Xerces (http://xml4ada95.sf.net/)
does not meet your needs.
--
Dipl.-Inf. Stefan Bellon
Bauhaus Software Technologies | TTI GmbH TGZ Softwareanalysen c/o ISTE
Tel.: +49 711 78 16 221 | Universitätsstraße 38
Fax.: +49 711 78 16 380 | 70569 Stuttgart
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Dynamic String
2005-11-01 8:02 ` Harald Korneliussen
` (3 preceding siblings ...)
2005-11-01 22:31 ` Dynamic String Björn Persson
@ 2005-11-02 0:18 ` Stephen Leake
2005-11-02 7:31 ` Harald Korneliussen
4 siblings, 1 reply; 18+ messages in thread
From: Stephen Leake @ 2005-11-02 0:18 UTC (permalink / raw)
"Harald Korneliussen" <vintermann@gmail.com> writes:
> btw, I think Ada is great, but it's not for rapid application
> development.
For the applications I write, Ada is the fastest (in development time)
language I know (and I have used APL, Visual Basic, C, C++, Emacs
Lisp, Java).
The speed is partly due to the library of useful stuff I've built up
over the years (including my own container library); Ada makes it much
easier to write such a library.
--
-- Stephe
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Dynamic String
2005-11-02 0:18 ` Stephen Leake
@ 2005-11-02 7:31 ` Harald Korneliussen
0 siblings, 0 replies; 18+ messages in thread
From: Harald Korneliussen @ 2005-11-02 7:31 UTC (permalink / raw)
Stephen Leake wrote:
> "Harald Korneliussen" <vintermann@gmail.com> writes:
>
> > btw, I think Ada is great, but it's not for rapid application
> > development.
>
> For the applications I write, Ada is the fastest (in development time)
> language I know (and I have used APL, Visual Basic, C, C++, Emacs
> Lisp, Java).
>
> The speed is partly due to the library of useful stuff I've built up
> over the years (including my own container library); Ada makes it much
> easier to write such a library.
>
> --
> -- Stephe
There are certainly applications where I would expect this. I was
writing my own container and algorithm libraries myself, but mostly to
learn. I realize that rolling on my own might hurt cooperative efforts,
so I will certainly explore the new Ada.Containers library, which I am
very pleased to hear was included :-)
^ permalink raw reply [flat|nested] 18+ messages in thread