[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
declaration

Declaration

A declaration is generally a statement that instructs the compiler or interpreter how to interpret a symbol. Usually a declaration tells the compiler or interpreter of the existance of a function or variable.

Some languages, however, are dynamically typed. In Python, for example, variables are never declared (there is no syntax to allow it). You simply assign a value to a name and the interpreter decides what type it is. Dynamically typed languages require a little extra care by the programmer because there is no compiler to generate warnings that you might be doing something stupid.

last edited (October 15, 2003) by philip7891, Number of views: 1920, Current Rev: 3 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.