You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is a small issue of consistency in the example that might confuse someone.
The example is about mutability qualifiers but also shows how to use the typeof( .. ).tostring() to obtain a human-readable string of that type. At line 18 it says:
const int* cm = &m;
writeln("cm: ", typeof(cm).stringof);
there is no consistency between the two sections of the example. If the first writln text is correct then the text of the second writeln should say "cv" and not "*cv". You know, the output of typeof(*cv).stringof is not the same that typeof(cv).stringof, like "*cv: const(int*)" is not the same that "cv: const(int*)".
I think that the * must be removed from the second writeln.
The text was updated successfully, but these errors were encountered:
(this issues was presented at dlang-tour/spanish#23)
I think this is a small issue of consistency in the example that might confuse someone.
The example is about mutability qualifiers but also shows how to use the typeof( .. ).tostring() to obtain a human-readable string of that type. At line 18 it says:
and few lines down (line 37) it says:
there is no consistency between the two sections of the example. If the first writln text is correct then the text of the second writeln should say "cv" and not "*cv". You know, the output of typeof(*cv).stringof is not the same that typeof(cv).stringof, like "*cv: const(int*)" is not the same that "cv: const(int*)".
I think that the * must be removed from the second writeln.
The text was updated successfully, but these errors were encountered: