Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
klauserc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
61.
▲
by
klauserc
12y ago
>> Enums would demand an explicit cast > > enum Test > { > A,B,C > } > > int x = Test.A; // This won't assign > > int x = (int)Test.A; // This will The OP wa
62.
▲
by
klauserc
12y ago
It's a struct. It will always be returned by value. Furthermore, the struct has a single Int32 field. The code generated for "new BookingTypeId(3)" is about the same as for "3".