www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - rewrite auto in visual D

reply Craig <Craig Tonsils.com> writes:
thinks like intellisense and mouse highlighting show auto instead 
of the actual type. Can Visual D resolve these causes?
Apr 25 2019
parent Rainer Schuetze <r.sagitario gmx.de> writes:
On 26/04/2019 03:01, Craig wrote:
 thinks like intellisense and mouse highlighting show auto instead of the
 actual type. Can Visual D resolve these causes?
AFAICT it already does that if it manages to infer the type (but adds "auto" as a storage class), e.g. auto outBuffer = new char[dwSize+1]; shows "auto char[]" in the tool tip for outBuffer. It's known to fail for some complex cases, though, e.g. with the return type of multiple function overloads.
Apr 26 2019