git @ Cat's Eye Technologies Dipple / master julia / struct.jl
master

Tree @master (Download .tar.gz)

struct.jl @masterraw · history · blame

# SPDX-FileCopyrightText: Chris Pressey, the original author of this work, has dedicated it to the public domain.
# For more information, please refer to <https://unlicense.org/>
# SPDX-License-Identifier: Unlicense

struct Bleep
  bar
  baz::Int
  quuz::Float64
end

foo = Bleep("Hello, world", 23, 1.5)

println(typeof(foo))
println(foo)
println(foo.bar)
println(foo.baz)
println(foo.quuz)

function baz()
  x = 5
  x = "foo"
  return x
end

print(baz())