-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translated Chapter 8 of the Rust tour in Romanian 🇷🇴 #9
base: master
Are you sure you want to change the base?
Translated Chapter 8 of the Rust tour in Romanian 🇷🇴 #9
Conversation
Există două tipuri de pointeri bruți: | ||
|
||
|
||
* `*const T` - Un pointer brut la date de tip T care nu trebuie să se modifice niciodată. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nu trebuie sau nu pot sa se modifice?
Există două tipuri de pointeri bruți: | ||
|
||
|
||
* `*const T` - Un pointer brut la date de tip T care nu trebuie să se modifice niciodată. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trebuie scris clar ca este vorba de valoarea lui T care nu se poate modifica, pentru a nu se confunda cu let mut p: *const T
unde p = &v1
si p = &v2
sunt valabile, dar unsafe { *p = v; }
nu este permis.
Pointerii bruți pot fi convertiți în și din numere (exemplu: `usize`). | ||
|
||
|
||
Pointerii bruți pot accesa date cu cod *nesigur* (mai multe despre acest lucru mai târziu). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explicat de ce, si anume ca adresa este de fapt un numar, insa referinta &T
nu este doar un numar.
@AnneOnciulescu any updates here? |
Co-authored-by: Gheta Andrei-Cristian <95760823+andreigheta@users.noreply.github.com>
Co-authored-by: Gheta Andrei-Cristian <95760823+andreigheta@users.noreply.github.com>
Co-authored-by: Gheta Andrei-Cristian <95760823+andreigheta@users.noreply.github.com>
Co-authored-by: Gheta Andrei-Cristian <95760823+andreigheta@users.noreply.github.com>
Co-authored-by: Gheta Andrei-Cristian <95760823+andreigheta@users.noreply.github.com>
Co-authored-by: Gheta Andrei-Cristian <95760823+andreigheta@users.noreply.github.com>
Co-authored-by: Gheta Andrei-Cristian <95760823+andreigheta@users.noreply.github.com>
Co-authored-by: Gheta Andrei-Cristian <95760823+andreigheta@users.noreply.github.com>
Co-authored-by: Gheta Andrei-Cristian <95760823+andreigheta@users.noreply.github.com>
No description provided.