RosettaCodeData/Task/Variables/E/variables-8.e

9 lines
136 B
Text
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
def getUniqueId(&counter) {
counter += 1
return counter
}
var idc := 0
getUniqueId(&idc) # returns 1
getUniqueId(&idc) # returns 2