[AWS] AWS form parameters "bug"

Pascal Obry pascal at obry.net
Fri Feb 18 12:08:44 CET 2011


Thomas,

> Reading this:
>
> http://www.adacore.com/wp-content/files/auto_update/aws-docs/aws.html#Form-parameters
>
> Shouldn't the example read
>
>    AWS.Parameters.List.Get

List is a type, so can't be correct :)

> and/or
>
>    P.Get
>
> instead of
>
>    AWS.Parameters.Get
>
> Or am I missing something?

Yes, you are probably missing that Ada (since Ada 83) has inheritance.
So here in AWS.Parameters
we inherit all routines for type List declared in AWS.Containers.Tables because:

   type List is new AWS.Containers.Tables.Table_Type with private;

This is probably one of less known Ada rule :)

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


More information about the AWS mailing list