Translated Chapter 8 of the Rust tour in Romanian 🇷🇴#9
Open
AnneOnciulescu wants to merge 11 commits intoUPB-CS-OpenSourceUpstream:masterfrom
Open
Translated Chapter 8 of the Rust tour in Romanian 🇷🇴#9AnneOnciulescu wants to merge 11 commits intoUPB-CS-OpenSourceUpstream:masterfrom
AnneOnciulescu wants to merge 11 commits intoUPB-CS-OpenSourceUpstream:masterfrom
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.
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.
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.
Explicat de ce, si anume ca adresa este de fapt un numar, insa referinta &T nu este doar un numar.
|
@AnneOnciulescu any updates here? |
andreigheta
suggested changes
Jan 12, 2024
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.