You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have an issue with the target name shorthand @
The following
procedure Deal (From, To: in out Deck; N: Card_Number) is
begin
From := (@.Number + N, To.List (To.List'Last-N+1..To.List'Last) & @.List); --17
To := (@.Number - N, @.list(@.List'[email protected]'Last-N)); --18
end Deal;
causes the errors:
x86_64-linux-gnu-gcc-13 -c cardpackage.adb
cardpackage.adb:17:29: error: must appear in the right-hand side of an assignment statement
cardpackage.adb:18:37: error: must appear in the right-hand side of an assignment statement
gnatmake: "cardpackage.adb" compilation error
Complete code here. If I change '@' by the corresponding left-hand name, it works.
The text was updated successfully, but these errors were encountered:
Hi,
I have an issue with the target name shorthand
@
The following
causes the errors:
Complete code here. If I change '@' by the corresponding left-hand name, it works.
The text was updated successfully, but these errors were encountered: