//==========================// Array reference unpackingtypedefint[4]stuff;typedefint[4][4]doublestuff;voidStuffScat(arrayref<stuff>scat){inti=scat[0];}// The function below is calling the function above, providing dung to its scat parameter.voidDoubleStuffDung(arrayref<doublestuff>dung){StuffScat(dung[0]);}//==========================// Arbitrary dimensions// typedef dimension stackingtypedefint[2]fudge;typedeffudge[2]superfudge;typedefsuperfudge[2]megafudge;typedefmegafudge[2]ultrafudge;typedefultrafudge[2]omegafudge;omegafudgeOmegaFudge;// int[2][2][2][2][2]// DO NOT RUN; requires (2^32)*4 bytes memoryint[2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2]ShitTheBed;
While coding a script for handling matrices, wondered if array components could be unpacked. Pleasantly surprised at the success.
@JademusSreg: Go
You lost me at FuckPoo.