<p dir="auto">On a fresh Julia 0.3 install on windows 8.1, I get this odd behaviour, where size(A) indicates that the 3rd and 4th dimensions are of size 0, when A is an array of dimension 3 or 4.  This is illustrated below:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; size(ones(2))
(2,)

julia&gt; size(ones(2,3))
(2,3)

julia&gt; size(ones(2,3,4))
(2,3,0)

julia&gt; size(ones(2,3,4,5))
(2,3,0,0)

julia&gt; size(ones(2,3,4,5, 6))
(2,3,4,5,6)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">size</span>(<span class="pl-c1">ones</span>(<span class="pl-c1">2</span>))
(<span class="pl-c1">2</span>,)

julia<span class="pl-k">&gt;</span> <span class="pl-c1">size</span>(<span class="pl-c1">ones</span>(<span class="pl-c1">2</span>,<span class="pl-c1">3</span>))
(<span class="pl-c1">2</span>,<span class="pl-c1">3</span>)

julia<span class="pl-k">&gt;</span> <span class="pl-c1">size</span>(<span class="pl-c1">ones</span>(<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>))
(<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">0</span>)

julia<span class="pl-k">&gt;</span> <span class="pl-c1">size</span>(<span class="pl-c1">ones</span>(<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>))
(<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">0</span>,<span class="pl-c1">0</span>)

julia<span class="pl-k">&gt;</span> <span class="pl-c1">size</span>(<span class="pl-c1">ones</span>(<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>, <span class="pl-c1">6</span>))
(<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>,<span class="pl-c1">6</span>)</pre></div>
<p dir="auto">Interestingly, the correct result is returned when an axis is specified:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; size(ones(2,3,4))
(2,3,0)

julia&gt; size(ones(2,3,4), 3)
4"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">size</span>(<span class="pl-c1">ones</span>(<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>))
(<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">0</span>)

julia<span class="pl-k">&gt;</span> <span class="pl-c1">size</span>(<span class="pl-c1">ones</span>(<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>), <span class="pl-c1">3</span>)
<span class="pl-c1">4</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type &quot;help()&quot; to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.3.0-prerelease+3908 (2014-06-26 23:41 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 8f99257 (0 days old master)
|__/                   |  x86_64-w64-mingw32

julia&gt; x = tuple(1,2,3)
(1,2,0)

julia&gt; x
(1,2,0)

julia&gt; x[3]
3

julia&gt;
julia&gt; versioninfo()
Julia Version 0.3.0-prerelease+3908
Commit 8f99257 (2014-06-26 23:41 UTC)
Platform Info:
  System: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-4600M CPU @ 2.90GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY)
  LAPACK: libopenblas
  LIBM: libopenlibm

julia&gt;"><pre class="notranslate"><code class="notranslate">$ julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.3.0-prerelease+3908 (2014-06-26 23:41 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 8f99257 (0 days old master)
|__/                   |  x86_64-w64-mingw32

julia&gt; x = tuple(1,2,3)
(1,2,0)

julia&gt; x
(1,2,0)

julia&gt; x[3]
3

julia&gt;
julia&gt; versioninfo()
Julia Version 0.3.0-prerelease+3908
Commit 8f99257 (2014-06-26 23:41 UTC)
Platform Info:
  System: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-4600M CPU @ 2.90GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY)
  LAPACK: libopenblas
  LIBM: libopenlibm

julia&gt;
</code></pre></div>