Category:Wren-trait: Difference between revisions

m
Now using internal links to related pages.
(Change to blurb following addition of Const class.)
m (Now using internal links to related pages.)
Line 4:
It also contains the wrapper classes: ByRef, ByKey and Const. ByRef enables a value to be passed ''by reference'' to a method or function, ByKey enables a reference type object to be used as a Map key and Const represents a group of individually named read-only values.
 
It is the fifth in a series of modules (listed on the language's [https[://rosettacode.org/wiki/Category:Wren |main page]]) designed to assist with writing Rosetta Code tasks so the same code does not have to be written or copy/pasted time and time again thereby bloating a task's script code unnecessarily. It is also small enough to be used by other modules in the series which are usually organized and written to avoid inter-dependencies.
 
To use it all you need to do is to copy the source code (in the [https[://rosettacode.org/wiki/Category_talk:Wren-trait |talk page]]) to a text file called ''trait.wren'' and place this in the same directory as the importing script or module so the command line interpreter can find it.
9,482

edits