Classes (2)

Bobbee supports simple type parameterization for classes (a.k.a. ‶Generic Programming″):

var foundNames : ArrayList<String>; # a list of String values

and the ability to define iterators as methods rather than classes:

def split (s : String) : Iterator<String> {
  for i = 0 to length s - 1 do
    yield s [i];
}
Beyond OmniMark Sam Wilmott
Slide 25 of 37 www.wilmott.ca