This repository was archived by the owner on Mar 13, 2025. It is now read-only.
Pointers & references #12
Jomy10
started this conversation in
Syntax & language features
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There will be 2 kinds of pointers:
func someFunc(ptr: *String)
func someFunc(ptr: &String)
.&
= immutable reference&!
= mutable referenceEverything else is passed by value
Beta Was this translation helpful? Give feedback.
All reactions