Implicit var / with?

Suppose we have o: Obj and code that looks something like:

o.foo( .... o.bar(.... o.cat(...)), o.dog(...), o.blah(...) )

is there a way to do a

with o {
  foo(... bar( ... cat(..)), ... dog(...), ... blah(...) )
}

The point is to drop the o. after the with o

Not that I could find.

This said, you can call the methods as functions placing o in the first parameter position in each.

with was found long ago to make buggy code.

3 Likes