.jl - файлы: сценарии применения и особенности
作者
module MyModule
export Rectangle, area
abstract type Figure end
abstract type AbstractRectangle end
struct Rectangle <: AbstractRectangle
a::Real
b::Real
end
function Rectangle(a::Real)
Rectangle(a, a)
end
function area(r::Rectangle)
return r.a * r.b
end
public_variable = "публичная переменная"
end