<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 05/25/2015 11:27 AM, Jan Baumgart
      wrote:<br>
    </div>
    <blockquote cite="mid:55633F6C.4090608@gmx.de" type="cite">Hi there,
      <br>
      <br>
      I'm getting a strange warning, when working with a data structure
      array containing text elements:
      <br>
      <br>
      "warning: word_restore: extra arguments"
      <br>
      <br>
      This message gets posted for every array element, when loading the
      data.
      <br>
    </blockquote>
    <br>
    This means that each element of the array you are loading has more
    data than what you have<br>
    defined in the corresponding [struct].<br>
    <br>
    For example-- suppose the [struct] for your array elements is
    defined as [struct foo float y].  If you try to load<br>
    data where each array element has two floating point values, like
    "1" and "2", you'll get this warning.  Pd will load<br>
    "1" into the slot for the y field, but you don't have a field
    defined for "2".  That's why it complains.<br>
    <br>
    This is a warning instead of an error presumably because it's easy
    to run into this problem.  For example, you<br>
    could build a patch using [struct foo float x float y].  After you
    saved the data, maybe you decided you didn't<br>
    need the "x", so you change it to [struct foo float y].  Now when
    you load the data, it has an extra argument<br>
    that gets discarded.<br>
    <br>
    -Jonathan<br>
    <br>
    <blockquote cite="mid:55633F6C.4090608@gmx.de" type="cite">
      <br>
      There's an example patch attached. Open
      test_preset_data_structure.pd and click "read preset.txt".
      <br>
      <br>
      There's a comment in the text/data structure help patch saying:
      <br>
      "bug - saving multi-line texts inside structures"
      <br>
      <br>
      As far as i can tell, the data gets stored and loaded correctly.
      <br>
      Can i just ignore this warning, or should i be worried about
      losing data?
      <br>
      <br>
      thx,
      <br>
      Jan
      <br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>