You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
union Data {
String s;
ShortString ss;
Number n;
ObjectData o;
ArrayData a;
Flag f;
};对于Data这个union,为什么可以通过data的Flag判断类型后,再去获取data中特定的类型信息,原则上union不是只能存储一种类型吗,我看最原始的版本flag和data是分开的。
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: