Timeline for What are the pros and cons of having a unit type over C-like void?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 10, 2023 at 16:51 | comment | added | Longinus | Ah I see, I misunderstood what you wrote. (Also why did I believe C++ allowed that? I don't know) | |
Jul 10, 2023 at 16:22 | comment | added | user23013 | @Longinus I don't think it works in C++. At least it doesn't compile in g++. The point is if void was a unit type, this could easily be supported, as something in the pros list. (Also, the downvoter has reversed their vote after my edit.) | |
Jul 10, 2023 at 16:09 | comment | added | Longinus | That is an example of a unit type though. That it works in C++ is because C++ special-cases this particular use. | |
Jul 10, 2023 at 14:38 | history | edited | user23013 | CC BY-SA 4.0 |
added 60 characters in body
|
Jul 10, 2023 at 14:32 | history | edited | user23013 | CC BY-SA 4.0 |
added 60 characters in body
|
Jul 10, 2023 at 14:31 | review | Low quality posts | |||
Jul 10, 2023 at 17:58 | |||||
Jul 10, 2023 at 13:19 | history | answered | user23013 | CC BY-SA 4.0 |