Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Suppose you had a language without any namespaces or packages (in some languages like Java the package is program module and namespace at the same time...). To avoid name clashes, you would use the prefixes. But you have to take care to name properly all program elements and write some characters every time you introduce something new. So the solution would be to introduce namespace into the language, construct which will automatically prefix each element with some name, which you can specify at one place (avoiding typos). Now as long as the namespace names do not class, you are safe. Namespaces allowed to specify the prefix on one place, so you can easily use longer names and therefore avoid the clash without having to type more each time. Look for example how the packages of some libraries are named - they use namespace uri (e.g. country_abbreviation.compay_name.product_name.program_module). However writing the whole identifier names, with package name, tend to be tedious, so many languages invented constructs which allow to use names from namespace as if you used them right in theri namespace (e.g. using, import etc.). But this gets us back to the original situation. The solution is to avoid use of implicit namespaces for program elements, which might change, as in your situation. So the solution you want is to use namespaces for you different games, so you can specify in the GUI component which exact Game element you mean by providing the full name with the package name.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload