Search code examples
What is the difference between `new Function(…)` and `new function() { … }`?...


javascriptfunctionconstructornew-operator

Read More
What is the difference between calling a constructor function with and without the `new` operator?...


javascriptobjectnew-operator

Read More
Why wrap the constructor passed to the new operator in parentheses?...


javascriptnew-operator

Read More
Do the parentheses after the type name make a difference with new?...


c++constructorinitializationnew-operatorc++-faq

Read More
operator new with empty exception-specification calling constructor when allocation returns 0...


c++g++standardsnew-operator

Read More
Why are destructors not automatically called for objects created with the `new` operator when the po...


c++classdestructornew-operator

Read More
Why is ::operator new[] necessary when ::operator new is enough?...


c++memory-managementoverloadingstandardsnew-operator

Read More
Is difference between two pointers pointing to the same deallocated array well-defined in C++?...


c++pointerslanguage-lawyernew-operatorundefined-behavior

Read More
Unexpected call to constructor when non-throwing operator new returns a nullptr...


c++new-operatornoexcept

Read More
Make malloc allocate from already allocated buffer...


c++memory-managementmallocnew-operator

Read More
Why do I need the `new` keyword for an instance of `Date` in JavaScript?...


javascriptsyntaxnew-operatoroperator-keyword

Read More
What does the `new` keyword do?...


javanew-operator

Read More
Issue with aggregate initialization with the new operator...


c++chardynamic-memory-allocationnew-operatordynamic-arrays

Read More
Why does referencing a this.function() in JavaScript not refer to the prototype element?...


javascriptfunctionconstructorthisnew-operator

Read More
Associativity of '*' operator in a 'new' statement in C++...


c++syntaxnew-operatordynamic-arrays

Read More
Strings are objects in Java, so why don't we use 'new' to create them?...


javastringnew-operator

Read More
Redefining new and delete operators...


c++new-operatoroperator-keyworddelete-operatorredefinition

Read More
Is "delete this" allowed in C++?...


c++memory-managementnew-operatordelete-operatorself-destruction

Read More
Ambiguous call to operator new[] when upgrading to C++ 20...


c++templatesvisual-c++c++20new-operator

Read More
Override delete operator...


c++oopnew-operator

Read More
React/RCTBridgeDelegate.h' file not found...


react-nativebuildprojectnew-operator

Read More
What uses are there for "placement new"?...


c++memory-managementnew-operatorplacement-new

Read More
dynamically allocating a c++ object without using the new operator...


c++new-operator

Read More
When a function is invoked with `new`, how can `this` in the body point to the newly-created object ...


javascriptobjectnew-operator

Read More
C++ deleting array on the heap...


c++arraysmemorynew-operatordelete-operator

Read More
object issues of javascript...


javascriptnew-operator

Read More
Why can some constructors be called without using the `new` operator?...


javascriptconstructornew-operatorobject-construction

Read More
Why would a C++ compiler not eliminate null check of pointer returned by new?...


c++compiler-optimizationnew-operator

Read More
Is it useful to test the return of "new" in C++?...


c++new-operator

Read More
Are objects created with new guaranteed to stay in the same memory location? If so, does new place t...


c++cachingdynamic-memory-allocationnew-operatormemory-fragmentation

Read More
BackNext