Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7285 > unrolled thread

Span Set nasty bug

Started byroby <roby.nowak@gmail.com>
First post2011-12-16 11:09 +0000
Last post2011-12-19 12:20 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Span Set nasty bug roby <roby.nowak@gmail.com> - 2011-12-16 11:09 +0000
    Re: Span Set nasty bug BernieTheJet <berniethejet@gmail.com> - 2011-12-19 12:20 +0000

#7285 — Span Set nasty bug

Fromroby <roby.nowak@gmail.com>
Date2011-12-16 11:09 +0000
SubjectSpan Set nasty bug
Message-ID<jcf8ta$72o$1@smc.vnet.net>
Dear group & Mathematica team

I am trying to assign a non existing element member of a 2D List.
Due to the coosen Span the element should not exist respectivly not be
assigned.
when the non existing element is queried e.g. {} should be returned

please take a look on the following assignment:

In[43]:= t = Table[0, {15}, {15}];
t[[1 ;; 0, 1 ;; 1]] = 1;
t[[1 ;; 0, 1 ;; 1]]
t[[1, 1]]

Out[45]= {}

Out[46]= 0

so far so good no element gets assigned and the query works,
after changing 15 to 16 or greater the query still works but  the
following happens element [[1,1]] gets a value assigned:

In[47]:= t = Table[0, {16}, {16}];
t[[1 ;; 0, 1 ;; 1]] = 1;
t[[1 ;; 0, 1 ;; 1]]
t[[1, 1]]

Out[49]= {}

Out[50]= 1

Is this a bug or is it a feature ?

[toc] | [next] | [standalone]


#7343

FromBernieTheJet <berniethejet@gmail.com>
Date2011-12-19 12:20 +0000
Message-ID<jcna6a$e6b$1@smc.vnet.net>
In reply to#7285
Feature.  Wolfram doesn't do bug testing before they sell stuff, that
is our job.

B

> Out[50]= 1
>
> Is this a bug or is it a feature ?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web