I wanted to do something like this
but the compiler expects numbers after the equals.
Now of course I know I could count the bits and put
but that is not very nice (for lots of reasons). But I tried
and it seems to work, so I thought I would share...
Code
type
TMyType = ( Fred, Joe, Bill, Billy = Bill, Mike );
TMyType = ( Fred, Joe, Bill, Billy = Bill, Mike );
but the compiler expects numbers after the equals.
Now of course I know I could count the bits and put
Code
type
TMyType = ( Fred, Joe, Bill, Billy = 2, Mike );
TMyType = ( Fred, Joe, Bill, Billy = 2, Mike );
but that is not very nice (for lots of reasons). But I tried
Code
type
TMyType = ( Fred, Joe, Bill, Mike );
alias
Billy = Bill;
TMyType = ( Fred, Joe, Bill, Mike );
alias
Billy = Bill;
and it seems to work, so I thought I would share...