Note that there are some explanatory texts on larger screens.

plurals
  1. USkentaromiura
    primarykey
    data
    text
    plurals
    1. COdoOne and doTwo are not equivalent, why you do this: List<int> A = new List<int>(); for (int i = 0; i < 200; i++) A.Add(i); IList<int> L = A; and not directly this: IList<int> A = new List<int(); for (int i = 0; i < 200; i++) A.Add(i); ????
      singulars
    2. CO@Christoph: I mean, you're right. null *should* be a type, what I means is that you cannot check it in that way because: alert(new Object() !== new Object()); /* true, new istance is not the same istance */ alert(Object(null).constructor == {}.constructor); /* true as in spec */ alert(Object(null).prototype == {}.prototype); /* true as in spec */ alert(null instanceof Object); /* obviously false, null means not instantiated */ But basically is a spec bug XD see: http://www.uselesspickles.com/blog/2006/06/12/javascript-null-identity-crisis/ and http://javascript.crockford.com/remedial.html
      singulars
    3. CONo, is not. Object() cast work in that way, see http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf -- 15.2.2.1 new Object ( [ value ] ) ... 8. (The argument value was not supplied or its type was Null or Undefined.) Create a new native ECMAScript object. The [[Prototype]] property of the newly constructed object is set to the Object prototype object. The [[Class]] property of the newly constructed object is set to "Object". The newly constructed object has no [[Value]] property. Return the newly created native object.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload