Okay, I use @ for two thins mostly. 1. To use pointers to records instead of objects. In this case I want to see the content of the record in the hint. 2. When I pass something into an old school procedure/function. In this case I want to see the contents of the variable too. Cases when I want to see the pointer are so rare, that it makes sense to me to show the pointer only when I select the variable together with @, not the other way around. Now to see the contents of the variable I have to select it without @.
It's the 'worst', because the hint used to be as I want it to be in Delphi 2006, and then at one moment (Delphi XE, maybe) someone put an effort and made it how it is now.
Vitali Burkov now that's a regression and not a new feature request. Now hopefully either the old persons that broke this are still there or the new persons have already enough knowledge to fix this.
with though
ReplyDeletes/is/is pointing to is/
ReplyDeleteWell the expression is taking an address of something, so yes, knowing what the address is is quite useful.
ReplyDeletevery
ReplyDeleteAsbjørn Heid but the contains of P is also usefull, the hint should disply both in case of a "@"
ReplyDeleteOkay, I use @ for two thins mostly. 1. To use pointers to records instead of objects. In this case I want to see the content of the record in the hint. 2. When I pass something into an old school procedure/function. In this case I want to see the contents of the variable too. Cases when I want to see the pointer are so rare, that it makes sense to me to show the pointer only when I select the variable together with @, not the other way around. Now to see the contents of the variable I have to select it without @.
ReplyDeletePaul TOTH Well yeah, but that hardly makes it the worst feature ever...
ReplyDeleteIt's the 'worst', because the hint used to be as I want it to be in Delphi 2006, and then at one moment (Delphi XE, maybe) someone put an effort and made it how it is now.
ReplyDeleteVitali Burkov now that's a regression and not a new feature request. Now hopefully either the old persons that broke this are still there or the new persons have already enough knowledge to fix this.
ReplyDelete