[Info-vax] C limitations, was: Re: VMS process communication

Johnny Billquist bqt at softjar.se
Wed Mar 29 11:37:47 EDT 2023


On 2023-03-28 00:46, Arne Vajhøj wrote:
> On 3/27/2023 6:16 PM, Johnny Billquist wrote:
>> On 2023-03-27 14:27, Simon Clubley wrote:
>>> enums are integers, not a type.
>>
>> Not sure I consider the enum thing to be much of a deal. Unless we 
>> compare to Ada, which is the only language I've seen which really do 
>> enums properly as its own type.
> 
> Java enums are also very much non-int.

I can't remember Java enough to be sure, but I don't think they went as 
far as Ada. What happens in Java if you print out the value of an enum 
variable? Can you loop over it, and that is a loop that does not have an 
integer loop counting? Can you read values into an enum, and do you then 
type in the possible enums or else get an error? Can you use enums as 
indexing in arrays? And nowhere does any numberness of the whole thing 
shines through?

I thought Java was rather C-like...

   Johnny




More information about the Info-vax mailing list