Skip to content

Anonymous record with “align” modifier cannot be initialized in-place.

Minor annoyance, but aligning an anonymous record and initializing it in place, like this:

const // or “var”
	Constants: record
		alternatingSigns: array[0 .. 3] of single;
		ePowPi: single;
	end align 16 = (alternatingSigns: (1, -1, 1, -1); ePowPi: exp(pi));
begin
end.

does not compile.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information