Похожие чаты

I think i get it, but not sure. By paasing

by reference the method code will be merged into the main function or any function that it will be called in and executed there, right?🤔

5 ответов

22 просмотра

u dont get what you mean by merging and so on, you might want to look up passing by reference vs passing by value the essential difference is that when you are passing by reference the passing instance must be definded beforehand and you are usually saving the costs of the copy operation

More like passing by reference only copies a pointer, and not the rectangle itself

Amir- Автор вопроса
Sunbro
u dont get what you mean by merging and so on, you...

Isn't that case when passing by value as well?🤔the instance should be defined before hand either way, right? I'll look it up more, the notes that i took from the course few days ago says these stuff, guess i'll watch them again or just look it up online

Amir
Isn't that case when passing by value as well?🤔the...

Let's say your rectangle object takes up 10MB Without the pointer, you would be copying 10MB into the stack and then running the function (jumping to the function code) With the pointer, you copy 8 bytes (1 pointer) into the stack of the function, and then run it (the pointer pointing to the 10MB already in memory somewhere else)

Amir- Автор вопроса

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта