<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 29, 2014 at 3:07 PM, Pete Cooper <span dir="ltr"><<a href="mailto:peter_cooper@apple.com" target="_blank">peter_cooper@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote type="cite"><div><div dir="ltr"><div><div>Still not sure why its better to make all of this public…</div></div></div></div></blockquote>Ultimately it was because tablegen couldn’t set the values of the private fields when it used the ‘x = { … }’ syntax.</blockquote></div><br></div><div class="gmail_extra">So, I'll ask a question in complete ignorance because I don't understand how tablegen works. Please don't hold anything up based on this question, just hoping you'll enlighten me.</div><div class="gmail_extra"><br></div><div class="gmail_extra">If there is a static method to return a local variable constructed with the correct defaults, and/or a default constructor which provides them, why can't TableGen produce that? I'm imagining TableGen emitting the "return Blah(X, Y, Z, ...);" statement.</div><div class="gmail_extra"><br></div><div class="gmail_extra">That seems better than having a global at all, even if it is {} initialized as an aggregate.... But there is probably a reason why this can't be done. =]</div></div>