Skip to content

Instantly share code, notes, and snippets.

@zah
Created September 12, 2011 19:28
Show Gist options
  • Select an option

  • Save zah/1212142 to your computer and use it in GitHub Desktop.

Select an option

Save zah/1212142 to your computer and use it in GitHub Desktop.
type BigObject = object
field: ExpensiveToCopy
proc complexNestedAccessors(o: var Obj) : var ExpensiveToCopy =
var localVariable : BigObject = computeFromComplexAlgorithm()
return o.AggregatedObject.accessor(localVariable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment