Category:Wren-trait: Difference between revisions
Content added Content deleted
(Changed blurb following addition of new classes.) |
m (Tidied links.) |
||
Line 6: | Line 6: | ||
ByRef enables a value to be passed ''by reference'' to a method or function and ByKey enables a reference type object to be used as a Map key. |
ByRef enables a value to be passed ''by reference'' to a method or function and ByKey enables a reference type object to be used as a Map key. |
||
It is the fifth in a series of modules (listed on the language's |
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 |
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. |