Array initialization can be done with or without the '
:
int a[8] = '{0,1,2,3,4,5,6,7}; // Packed
int b[8] = {0,1,2,3,4,5,6,7}; // Unpacked
Is there a correct way, assuming the array uses an un-packable type like int, string, etc.? Both ways seem to work just fine.
Full code example on EDA Playground: http://www.edaplayground.com/x/3Tc