❌ About FreshRSS

Reading view

There are new articles available, click to refresh the page.

Aggregates as initial value of an array

Hello!
I’m stuck with this array construct.
Can’t find the syntax clue to initialize an array of records, with the particularity I aim to pass the array as an in out variable, without needing to pass en extra index (ID) info.

(for K_ID in Knot_ID => ^
Compile error: missing β€œ,” at ^

even with -gnat2022 and -gnatX switches, or pragma Ada_2022;

   subtype Knot_ID is Integer range Head_Knot .. Tail_Knot;
   type Grid_Position is record 
      X : X_Dimension;
      Y : Y_Dimension; 
   end record;

   type Knot_record is record
      ID : Knot_ID;
      Pos : Grid_Position;
   end record;

   type Rope_array is array (Knot_ID'Range) of Knot_record;

(...)

   Rope_Positions, Previous_Rope_Positions : Rope_array := 
--    (others => (ID => Head_Knot, Pos => (0,0)));  --:FIXME:  ID => Knot_ID'Range
      (for K_ID in Knot_ID => (ID => K_ID => (ID => K_ID, Pos => (0,0))));

see Ada 2012/2012 Array Aggregates
see Overview of Ada 2022
Compiler is FSF gcc-gnat 12.2.0

William

3 posts - 2 participants

Read full topic

Adopt the Ada Horizon logo for all public Ada Community Web-sites

Dear all

With the latest Ada Β«HorizonΒ» Logo proposal and the ongoing movement for the adoption of an unified Ada logo,

It would be outstanding if we could have a (long awaited) homogeneous representation of our community to the outside world .

I mean, adopt it for the main public websites :
Discourse Forum, Reddit, Gitter-Ada, Wikipedia, Wikibooks, Wikiversity, Forge, are all kind of public Web info to serve the Ada Community.

There is already a poll set by Jeremy to apply the new Horizon Logo to this site (Forum).
But I think we could extend the thought to a larger horizon :wink:

@JeremyGrosser Could you please set-up some polling support about this ? (global question, or per web-site/service?)

To all: What is your comment about this ?

Cheers, William

Ref: Fabien’s logo presentation
Some Samples:

ada_logo_examples

ada_logo-3

4 posts - 3 participants

Read full topic

Ada page on Wikipedia audience

Hits on diverse spoken/read languages on Wikipedia Ada (programming language)

i.e Who is interested in Ada programming technology ? (guess beginners …)

on a 30 day period:

Lang on 2023-01-20
en (ww) 18250 56%
ru 4 456 14%
fr (ww) 2 079 6%
de 2005 6%
es (ww) 1 176 4%
ja 1 062 3%
it 655 2%
zh 464 1%
pt (ww) 402 1%
pl 379 1%
se 300 1%
tr 264 1%
ko 204 1%
ar 164 1%
nl 130 0%
he 130 0%
no 83 0%
ro 73 0%
da 39 0%
– – –
Total 32315 100%

3 posts - 2 participants

Read full topic

❌