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.
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.
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.
ShortName is New ReallyLongAndAwkardName;
Ah, well.