User Tools

Site Tools


macros:namespace

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
macros:namespace [2017/10/29 16:26] – ↷ Page moved from namespace to macros:namespace icke_siegenmacros:namespace [2017/11/19 15:30] (current) – [Namespaces in this Wiki] icke_siegen
Line 5: Line 5:
 Luckily there is a simple but useful system you stay on the helm of this maze: a hierachical system of names. This is used for functions, for properties, for macro IDs - and possibly for even more purposes. Simply put, you prepend each function/property/macro name with the space in that it lives. One abstract but simple example is in [[macros:function_syntax]]: Luckily there is a simple but useful system you stay on the helm of this maze: a hierachical system of names. This is used for functions, for properties, for macro IDs - and possibly for even more purposes. Simply put, you prepend each function/property/macro name with the space in that it lives. One abstract but simple example is in [[macros:function_syntax]]:
  
-> in our situation with hundreds of functions it's very helpful that functions are classified in [[:namespace|namespaces]]. Thus you immediately see the difference between ''playbacks.delete()'' - which probably deletes a playback - and ''fixtures.delete()'' - which probably deletes a fixture+> in our situation with hundreds of functions it's very helpful that functions are classified in [[macros:namespace|namespaces]]. Thus you immediately see the difference between ''playbacks.delete()'' - which probably deletes a playback - and ''fixtures.delete()'' - which probably deletes a fixture
  
 And if it gets more complicated, simply more namespaces are nested. This immediately explains something like And if it gets more complicated, simply more namespaces are nested. This immediately explains something like
Line 33: Line 33:
 Here is a list of the namespaces covered in this wiki: Here is a list of the namespaces covered in this wiki:
  
-<nspages namespace -h1 -textPages="">+<nspages macros:namespace -h1 -textPages="">
  
-~~DISCUSSION~~+----
  
 +~~NOCACHE~~
 +{{page>macros:formats_and_syntax#further_readings}}
 +
 +~~DISCUSSION~~
macros/namespace.1509294414.txt.gz · Last modified: 2017/10/29 16:26 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki