Skip to content

Translated Chapter 8 of the Rust tour in Romanian 🇷🇴#9

Open
AnneOnciulescu wants to merge 11 commits intoUPB-CS-OpenSourceUpstream:masterfrom
AnneOnciulescu:ro_chapter8
Open

Translated Chapter 8 of the Rust tour in Romanian 🇷🇴#9
AnneOnciulescu wants to merge 11 commits intoUPB-CS-OpenSourceUpstream:masterfrom
AnneOnciulescu:ro_chapter8

Conversation

@AnneOnciulescu
Copy link
Copy Markdown

No description provided.

Există două tipuri de pointeri bruți:


* `*const T` - Un pointer brut la date de tip T care nu trebuie să se modifice niciodată.
Copy link
Copy Markdown

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ă.
Copy link
Copy Markdown

@alexandruradovici alexandruradovici Jan 27, 2023

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).
Copy link
Copy Markdown

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.

@alexandruradovici alexandruradovici changed the title Translated Chapter 8 of the Rust tour in Romanian Translated Chapter 8 of the Rust tour in Romanian 🇷🇴 Jan 27, 2023
@alexandruradovici
Copy link
Copy Markdown

@AnneOnciulescu any updates here?

AnneOnciulescu and others added 9 commits January 14, 2024 23:07
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

4 participants