<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 7/7/2024 6:06 PM, Mark Volkmann via Cuis-dev wrote:
    <blockquote
cite="mid:CAFfRWnXvy=shJu6-seHC7Nv2cgfai6Z_vF16pGQ=hWG+h3C1iQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">It seems that `Dictionary newFrom:` works with a
        run-time literal Array of Association objects and does not work
        with a compile-time literal Array or Association objects. For
        example, this works:
        <div><br>
          <div><font face="monospace">as := {#a -> 'apple'. #b ->
              'banana'. #c -> 'cherry'}.<br>
              d2 := Dictionary newFrom: as.</font><br>
            <br class="gmail-Apple-interchange-newline">
          </div>
          <div>but this gives the error "MessageNotUnderstood:
            Symbol>>key".<br>
          </div>
          <div><br>
          </div>
          <div>
            <div>
              <div><font face="monospace">as := #(#a -> 'apple' #b
                  -> 'banana' #c -> 'cherry').<br>
                  d2 := Dictionary newFrom: as.</font></div>
              <div><br>
              </div>
            </div>
            <div>Can someone explain why?</div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    It would really be the best for YOU to start flexing your Smalltalk
    muscles. A quick dive with the debugger, and use of inspectors and
    browsers, will give you waaaaay more insight that the best
    explanation anyone could write.<br>
    <br>
    <blockquote
cite="mid:CAFfRWnXvy=shJu6-seHC7Nv2cgfai6Z_vF16pGQ=hWG+h3C1iQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div><span class="gmail_signature_prefix">-- </span><br>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div dir="ltr">
                          <div><font face="arial, helvetica, sans-serif">R.
                              Mark Volkmann</font></div>
                          <div><span style="font-size: 12.8px;"><font
                                face="arial, helvetica, sans-serif">Object
                                Computing, Inc.</font></span></div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    HTH,<br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
  </body>
</html>