enum ubyte[] vs enum ubyte[3]

Johannes Pfau spam at example.com
Mon Dec 20 01:26:16 PST 2010


Hi,
I'm currently patching Ragel (http://www.complang.org/ragel/) to generate  
D2 compatible code. Right now it creates output like this for static  
arrays:
------------------------
enum ubyte[] _parseResponseLine_key_offsets = [
	0, 0, 17, 18, 37, 41, 42, 44,
	50, 51, 57, 58, 78, 98, 118, 136,
	138, 141, 143, 146, 148, 150, 152, 153,
	159, 160, 160, 162, 164
];
------------------------
Making it output "enum ubyte[30]" would be more complicated, so I wonder  
if there's a difference between "enum ubyte[]" and "enum ubyte[30]"?

-- 
Johannes Pfau


More information about the Digitalmars-d-learn mailing list