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



Users browsing this thread: 3 Guest(s)