Register
RemedyBG»Forums»Reference pointer syntax intentional?
Benjamin Pedersen
26 posts

Mathematician

Reference pointer syntax intentional?
5 months, 1 week ago Edited by Benjamin Pedersen on April 11, 2020, 5:05 p.m. Reason: Initial post
Hi

Is it intentional that references use pointer syntax in the watch window? There are a lot of references in the code at my work. I can definitely adapt, but I can see it being a hindrance for others.
194 posts / 1 project

None

Reference pointer syntax intentional?
5 months, 1 week ago
I have on my todo list checking for references and allowing the '.' operator to be used. I might just get rid of the error altogether and allow '.' for everything. Not sure on this though.
Simon
5 posts
Reference pointer syntax intentional?
5 months, 1 week ago
I would also really appreciate this! I think the reason why this syntax was used in programming languages also largely doesn't apply in a debugger: You have all types visible all the time, so the possiblity of confusion over what is a pointer and what not is a lot lower.

That said: The most important thing is to have good error messages about this, if one tries the other thing, and you luckily do!