answersLogoWhite

0


Best Answer

Yes. One could create a file called standalone.adb with the contents: with Text_IO; procedure Standalone is begin Text_IO.Put_Line("I am so alone"); end Standalone; and have another package in a file called package_1.ads with the contents: package package_1 is procedure Standalone; end package_1; (Not providing the body of this package in the example but obviously one is needed). At this point, we have shown that it is possible but the next question is (maybe) how would you call them. with Standalone; with Package_1; procedure My_Main_Program is begin Standalone; Package_1.Standalone; end My_Main_Program;

User Avatar

Wiki User

17y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can a standalone procedure in Ada have the same name as a procedure within a package?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do we save packages and interface in java?

with the package name syntax: <package name> with the interface name.


What is hollie short for?

"Hollie" is a name that is not typically a shortened form of another name. It is generally used as a standalone name.


What is Leon short for?

Leon is typically a standalone name and is not commonly abbreviated or short for any longer name.


If you don't supply any access specifier with class name than which specifier it should have?

It will have the default access which means - this class will be accessible only within the current package.


How do you execute a package in java?

You don't execute a package; you execute a class. A package is just a grouping of classes.You don't execute a package; you execute a class. A package is just a grouping of classes.You don't execute a package; you execute a class. A package is just a grouping of classes.You don't execute a package; you execute a class. A package is just a grouping of classes.


What is planned procedure to test a hypothesis called?

The name of this procedure is experiment.


What is A planned procedure to test a hypothesis is called?

The name of this procedure is experiment.


What tab in the package properties window enables you to change the default name of a package?

the general tab


What is the package class name that Display inherits from?

A Display class in contained in this package as well... org.eclipse.swt.widgets


What is another name for the Altemeier procedure?

the Altemeier procedure (also called a proctosigmoidectomy)


What is a default package in Java?

A default package is a package with no name. You can create a Java class without putting package name on top of the code. This class is included in the "default package". Be careful not to be confused with java.lang, which is a package that contains Java's fundamental classes and get's imported by default.


There is no company name on the package only the tracking number and I did not order this merchandise and I need to return it. No paper work or any thing?

N