8000 Struct Type & Type Alias Implementation by tomoyanonymous · Pull Request #56 · mimium-org/mimium · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 22, 2024. It is now read-only.

Struct Type & Type Alias Implementation #56

Merged
merged 21 commits into from
Apr 1, 2021
Merged

Conversation

tomoyanonymous
Copy link
Contributor
@tomoyanonymous tomoyanonymous commented Feb 27, 2021

implement struct type(record type) and type alias. Example is in test_typealias.mmm in test/mmm.

type stereo = (float,float)

type composite = {signal:stereo , id:float}
fn test2(){
    ogya = composite{(100,200), 100}
    ho,fu = ogya.signal
    he = ogya.id
    println(ho)
    println(fu)
    println(he)
}
test2()

@tomoyanonymous tomoyanonymous marked this pull request as ready for review March 31, 2021 01:22
@tomoyanonymous tomoyanonymous changed the title Struct Type Implementation Struct Type & Type Alias Implementation Mar 31, 2021
@tomoyanonymous tomoyanonymous merged commit 5c987e7 into dev Apr 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0