For example, if I am using a java library that has...
# announcements
r
For example, if I am using a java library that has a
Picture
and
Canvas
class, and there is a method
Picture.draw(Canvas canvas, int x, int y)
, is there a way for me to define
Picture.draw(x: Int, y: Int) = draw(this@Canvas, x, y)
that I can use in statements like
with(canvas) { picture.draw(100, 100) }
?