Core: Readd Variant class initializer, fix comment
Fixes two minor issues in variant.h:
- Readded the class initalizer for
type(#90866 regression). - Updated the comment that specifies Variant's byte allocation & when it allocates extra memory.
It also technically allocates data for the (packed) arrays and dicts, but for static sized data this is correct
That should still be fine in this context; allocates extra memory only comments on the times when it will exceed 24/40 bytes in size, not when allocation occurs period.
It does exceed that as it allocates a reference to those types, but the size of those depends on pointer sizes and alignment so might be platform dependent, but it does allocate extra data, just not of fixed size, as those data types (including PackedArrayRef<T>, which holds one SafeRefCount and one Vector<T>) do their own allocations
Ahhh, now I see what you mean. No harm in making that a footnote as well.
Thanks!