Re: rant // OE scope \\ forked out of 500 Rosetta

new topic     » goto parent     » topic index » view thread      » older message » newer message

In case it helps, this is what I wrote in the glossary section of phix.chm:

The term scope is a general concept used when describing how the compiler resolves references to identifiers. In most cases it is simple and intuitive, involving nothing more than plain old common sense. The scope of an identifier is where, in terms of which lines of code, it can be referenced. The scope of a variable starts at the point of declaration and ends at the end of the declaring block, routine, file, or in the case of globals, on the last line of the main file. The scope of a routine is anywhere in the file it is declared in, or in the case of global routines, anywhere in the entire application. Namespaces and explicit forward declarations can be used to further qualify and clarify matters.

I've just added: It may help to think of "in scope" as meaning "does not cause a compilation error".

Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu