Re: confusion about include

new topic     » goto parent     » topic index » view thread      » older message » newer message
kinz said...
said...

Version 3 Scope

A symbol is either private or global. It is private if it does not have the global keyword before the declaration.

private : Can be accessed by code in the same enclosing block as the declaration and by code in blocks defined inside the enclosing block.
global : Can be accessed by anything in the application.

Ok, but v3 docs say about "local" symbols too. And there are the rules about local and global symbols in a file. The local symbol has priority over the global one.

What do we have on that matter in v4?

That hasn't changed. I think Derek mixed up private and local. Private symbols have scope inside of a routine. Local symbols are scoped to a file, and a local symbol takes precedence over an export, public or global symbols. Private symbols take precedence over all other symbols.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu