Jump to content

Category:Wren-trait: Difference between revisions

m
Tidied links.
(Changed blurb following addition of new classes.)
m (Tidied links.)
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.
 
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,483

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.