RosettaCodeData/Task/Delegates/Julia/delegates-2.julia

12 lines
186 B
Text
Raw Permalink Normal View History

2018-06-22 20:57:24 +00:00
using .Delegates
a = Delegator(nothing)
b = Delegator("string")
d = Delegate()
c = Delegator(d)
@show Delegates.operation(a)
@show Delegates.operation(b)
@show Delegates.operation(c)