Pop-Up Thingie
Sidebar
>>> Magnum BBS <<<
Home
Forum
Files
Dark
Log in
Username
Password
Sidebar
Forum
Usenet
COMP.LANG.ADA
What I do wrong here?
From
reinert
@21:1/5 to
All
on Thu Sep 21 23:25:39 2023
-- Assume the following ordered_map:
package n_cells1_p is new ada.containers.ordered_maps
(key_type => celltype1_t, element_type => Natural);
use n_cells1_p;
n_cells1 : n_cells1_p.map;
-- This statemanet is OK according to latest gnat (latest alire release):
n_cells1(cells1(e.id).type1) := n_cells1(cells1(e.id).type1) + 1;
-- But the compiler does not like this:
n_cells1(cells1(e.id).type1) := @ + 1;
(giving messages:
error: expected type universal integer
error: found private type "Ada.Containers.Ordered_Maps.Reference_Type" ...
OK, I can live with the first alternative, but I would like to know...
reinert
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)
From
AdaMagica
@21:1/5 to
All
on Fri Sep 22 09:26:36 2023
Look like a compiler error. Note that @ is brand new, and your left-hand side is quite complicated..
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)
Who's Online
Recent Visitors
Keyop
Thu Apr 17 01:03:27 2025
from
Huddersfield, West Yorkshire
via
SSH
Keyop
Thu Apr 17 00:03:48 2025
from
Huddersfield, West Yorkshire
via
SSH
Ray
Wed Apr 16 23:35:16 2025
from
Remote
via
SSH
Guest
Wed Apr 16 22:41:56 2025
from
/bin/busybox Cat /proc/self/ex
via
Raw
Bob Worm
Wed Apr 16 21:41:39 2025
from
Wales, Uk
via
Telnet
Plume
Wed Apr 16 21:15:13 2025
from
Uk
via
Telnet
Ray
Wed Apr 16 20:27:31 2025
from
Remote
via
SSH
Ray
Wed Apr 16 19:55:00 2025
from
Remote
via
SSH
System Info
Sysop:
Keyop
Location:
Huddersfield, West Yorkshire, UK
Users:
455
Nodes:
16 (
2
/
14
)
Uptime:
97:07:42
Calls:
9,316
Calls today:
2
Files:
13,530
Messages:
6,079,027
Posted today:
1