This is a stripped-down version of a single section of Grok TiddlyWiki, optimized for fast loading and readability by search engines. Some features are missing.

For the full Grok TiddlyWiki experience, please visit the wiki version of this page.

Ex:ImportScopes/answer

 30th September 2024 at 9:22pm

Using \import would bring the local procedures into the current tiddler's scope...but everything in the current tiddler's scope is made global by $:/tags/Global, so separating the procedures into a separate tiddler wouldn't actually achieve anything in terms of avoiding pollution.

Most serious programming languages solve this problem in an elegant way, by automatically namespacing (basically, a formalized version of prefixing the names) the things you import. If you imported SomeTiddler's procedures, you would say SomeTiddler.procedurename rather than procedurename to access them. Unfortunately, TiddlyWiki doesn't currently offer this – maybe some day!

Go to question: Ex:ImportScopes