Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Confusion over passing by reference vs passing by value
#13
I'm pretty sure this syntax is actually also a bug, identified in the previous QB64Team repository:

Code: (Select All)
feld() = feld() + "DonaldDuck"

What they said was that `feld()` was getting treated as `feld(0)` by mistake, which compiles but is obviously not what you wanted. Really this syntax should just produce a compiler error, it has no meaning.

This is the issue I was remembering, it should probably be added to the Phoenix Edition repo since it's still a bug: https://github.com/QB64Team/qb64/issues/216
Reply


Messages In This Thread
RE: Confusion over passing by reference vs passing by value - by DSMan195276 - 06-19-2022, 10:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Array out of passing arrays... Pete 2 417 09-22-2025, 08:53 PM
Last Post: ahenry3068
  Call by reference / value Kernelpanic 3 926 11-28-2023, 03:41 AM
Last Post: TerryRitchie
  Variable as a reference or value to a function Kernelpanic 22 4,350 08-08-2022, 07:41 PM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)