Modulinos

# Life.sm

func meaning_of_life {
    42
}

if (__FILE__ == __MAIN__) {
    say "Main: The meaning of life is #{meaning_of_life()}"
}
# test.sf

include Life

say "Test: The meaning of life is #{Life::meaning_of_life()}."

Last updated