answersLogoWhite

0


Best Answer

The default file name is determined by the name of the unit that the file contains. The name is formed by taking the full expanded name of the unit and replacing the separating dots with hyphens and using lowercase for all letters.

An exception arises if the file name generated by the above rules starts with one of the characters `a', `g', `i', or `s', and the second character is a minus. In this case, the character tilde is used in place of the minus. The reason for this special rule is to avoid clashes with the standard names for child units of the packages System, Ada, Interfaces, and GNAT, which use the prefixes `s-', `a-', `i-', and `g-', respectively.

The file extension is .ads for a spec and .adb for a body. The following list shows some examples of these rules.main.adsMain (spec)

main.adbMain (body)

arith_functions.adsArith_Functions (package spec)

arith_functions.adbArith_Functions (package body)

func-spec.adsFunc.Spec (child package spec)

func-spec.adbFunc.Spec (child package body)

main-sub.adbSub (subunit of Main)

a~bad.adbA.Bad (child package body)

Following these rules can result in excessively long file names if corresponding unit names are long (for example, if child units or subunits are heavily nested). An option is available to shorten such long file names (called file name "krunching"). This may be particularly useful when programs being developed with GNAT are to be used on operating systems with limited file name lengths. See Using gnatkr.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the rules for naming a file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about General History

Who started naming boats?

history of boat naming


How do you find out if you are authorized to wear a award or ribbon in the NAVY?

Click the link below to see a PDF file of SECNAVINST-1650.1G, the rules for authorized Navy and Marine Corps awards.


How was octavian the heir of Julius Caesar?

Octavian was named heir by Caesar in his will. In addition to naming Octavian his main heir, Caesar also adopted Octavian in his will.Octavian was named heir by Caesar in his will. In addition to naming Octavian his main heir, Caesar also adopted Octavian in his will.Octavian was named heir by Caesar in his will. In addition to naming Octavian his main heir, Caesar also adopted Octavian in his will.Octavian was named heir by Caesar in his will. In addition to naming Octavian his main heir, Caesar also adopted Octavian in his will.Octavian was named heir by Caesar in his will. In addition to naming Octavian his main heir, Caesar also adopted Octavian in his will.Octavian was named heir by Caesar in his will. In addition to naming Octavian his main heir, Caesar also adopted Octavian in his will.Octavian was named heir by Caesar in his will. In addition to naming Octavian his main heir, Caesar also adopted Octavian in his will.Octavian was named heir by Caesar in his will. In addition to naming Octavian his main heir, Caesar also adopted Octavian in his will.Octavian was named heir by Caesar in his will. In addition to naming Octavian his main heir, Caesar also adopted Octavian in his will.


Which alphabet letters are not used when naming storms?

q and p


Does the 1938 hurricane has a name?

No. Hurricane naming did not begin until 1950.

Related questions

What are the rules and regulation in naming a file and its extension?

1. a) File length up to 78 characters, including the extensionb) The naming not containing \ / : * ? " < > or | symbolsc) The base name and extension must be separated by a period.


What file names are legal under the DOS file naming rules?

8.3 file name i.e. &lt;8 characters fo filename&gt;.&lt;3 chars for extension&gt; But U can not use special characters in file name as \ / : * ? " &lt; &gt; |


What file names are legal under the windows xp file naming rules?

See this URL for some discussion of Windows file names: http://msdn.microsoft.com/en-us/library/aa365247.aspx


What are the rules for naming new elements?

The IUPAC rules for naming new chemical elements are at this link.


What are Rules for naming an Microsoft Word document?

The extension must be .doc or docx And also you cannot use inverse slashes as are used in file paths.


What are the naming rules on Microsoft Word 2007?

Upper &amp; Lower case letters are the naming rules on Microsoft Word 2007.


What are the naming rules in XML?

XML has no rules like html in regards to tags and naming tags, you write your own xml tags.


What does naming a file mean?

Naming a file is assigning the packets of information that comprise that file a unique identifier that makes navigating easier. Manual naming is primarily for the user of a computer, since the computer system automatically names files for its use.


What are the rules in naming a source file in JAVA program?

The basic rule is that the file name should match the name of the topmost public class in the .java file. The names are usually camel case and can contains alphabets and numbers. It should begin only with an alphabet.


What are naming rules for Microsoft office word?

ribbons


Can you use sign while naming a file in windows?

no


Which of the file names below follows standard file naming convention?

BUS-APP_QUZ_CH02_V01