int sizeof(int a) { return 42; }
int nameof(int a) { return 99; }
int a;
int x = sizeof(a) //42
int y = a.sizeof() //Error: function expected before () ...
int z = a.sizeof //4, but dangerous, maybe the user expects 42
int xx = nameof(a) //99
int yy = a.nameof() //Error: function expected before () ...
int zz = a.nameof //Error: cannot implicitly ... string to int
Comment #1 by robert.schadek — 2024-12-13T19:14:04Z