News for hackers. Stuff that matters.
Re:Giving Ada a Chance by cafard on Tuesday March 02, 2021 @02:43PM (#26319561)
I use PL/SQL a fair bit, which was inspired by Ada. Unfortunately, the designers did not bring over

ShortName is New ReallyLongAndAwkardName;

Ah, well.

Re:Giving Ada a Chance by OneWingedShark on Tuesday March 02, 2021 @05:36PM (#26322056)
> I use PL/SQL a fair bit, which was inspired by Ada. I have a bit of a project-idea here: PL/SQL+Ada+VHDL all together in an IDE.

> Unfortunately, the designers did not bring over > ShortName is New ReallyLongAndAwkardName; Do you mean renames? Package Text renames Ada.Strings.Fixed;

IIRC, RENAME is in the keywords list for PL/SQL.

Re:Giving Ada a Chance by cafard on Wednesday March 03, 2021 @09:10AM (#26328473)
RENAME is a command in Oracle SQL. I see in the documentation that PL/SQL gives it as a "keyword", not as a "reserved word". This means, I gather that you can name a subprogram as RENAME, though Oracle recommends against it. You could not, on the other hand name a subprogram INSERT, unless you double-quoted it--which, again, Oracle recommends against.
Re:Giving Ada a Chance by cneu on Wednesday March 03, 2021 @09:05AM (#26328415)
Some things are partially implemented:

  - type BOOLEAN is (FALSE, TRUE);
  - type VARCHAR2 is NEW CHAR_BASE;
  - generic collections
  - varargs
Unfortunately, they are only available for the PL/SQL team itself.