Active object: Difference between revisions

m
mNo edit summary
Line 1,139:
=={{header|Julia}}==
Julia has inheritance of data structures and first-class types, but structures do not have methods.
Instead, methods are functions with multiple dispatch based on argument type. The residual found is approximately sin(pi*dt),
probably because the running accumulator does one more sin function call as the function is changed.
<lang Julia>
mutable struct Integrator
4,105

edits