On 12/21/22 16:43, thebluepandabear wrote:
> Say you have the following function that takes in a `ref` parameter:
>
> ```D
> void modify(ref int num) {
> num += 5;
> }
> ```
>
> Does the compiler turn that into the code below?
>
> ```D
> void modify(int* num) {
> num += 5;
Rather:
*n
On Thu, Dec 22, 2022 at 12:43:28AM +, thebluepandabear via
Digitalmars-d-learn wrote:
> Say you have the following function that takes in a `ref` parameter:
>
> ```D
> void modify(ref int num) {
> num += 5;
> }
> ```
>
> Does the compiler turn that into the code below?
>
> ```D
> void m
Say you have the following function that takes in a `ref`
parameter:
```D
void modify(ref int num) {
num += 5;
}
```
Does the compiler turn that into the code below?
```D
void modify(int* num) {
num += 5;
}
```
I was just wondering whether or not this is the case because I
don't thin