RAII the only C++ concept that matters

  Рет қаралды 2,586

The Builder

The Builder

Күн бұрын

Пікірлер: 7
@hurrse
@hurrse 6 ай бұрын
I'm a simple man I see a new The Builder video, I click it
@marbens
@marbens 5 ай бұрын
C does support objects. Quote from C99: " *object* region of data storage in the execution environment, the contents of which can represent values "
@TheBuilder
@TheBuilder 5 ай бұрын
The term object is used in a somewhat ambiguous and loose manner. An integer is an object by this definition, and I do recall some books referring to everything as objects. In the sense of an object having preprogrammed behavior that runs automatically at set points in an objects lifetime, this isn't supported in C
@Algorithmswithsubham
@Algorithmswithsubham 5 ай бұрын
Woow ,interesting
@jesusmgw
@jesusmgw 21 күн бұрын
So, what is it? The video never explained what RAII is.
@TheBuilder
@TheBuilder 21 күн бұрын
It's a fancy name for constructors and destructors handling system resource life times
@gregorymorse8423
@gregorymorse8423 5 ай бұрын
Wrong. In C, #define macros can be used to implement RAII with BEGIN(...) and END(...) replacing curly braces. Further alloca and variable length array initialization e.g. int a[x] in C99 are forms of RAII in C. GCC implements a cleanup attribute that also allows RAII. The wrong multiplicity factor is high here.
Union? Like a struct but different...
1:50
The Builder
Рет қаралды 2,1 М.
C++ RAII vs Rust OBRM - Part 1
11:52
Let's Get Rusty
Рет қаралды 31 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 31 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 17 МЛН
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 5 МЛН
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 9 МЛН
Is this the WORST CODE I've EVER SEEN? // Code Review
24:28
The Cherno
Рет қаралды 100 М.
this is what happens when you let the intern write code.
12:50
Low Level
Рет қаралды 362 М.
What is RAII (Resource Acquisition Is Initialization)?
17:11
pencilflip
Рет қаралды 14 М.
Become a Malloc() Pro
6:58
thedoubleeguy
Рет қаралды 10 М.
2 Years of C++ Programming
8:20
Zyger
Рет қаралды 86 М.
Rust and RAII Memory Management - Computerphile
24:22
Computerphile
Рет қаралды 235 М.
C++ Best Practices: RAII
7:35
Nick
Рет қаралды 16 М.
The 3 Laws of Writing Readable Code
5:28
Kantan Coding
Рет қаралды 767 М.
you will never ask about pointers again after watching this video
8:03
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 31 МЛН