About 50 results
Open links in new tab
  1. What is the 'new' keyword in JavaScript? - Stack Overflow

    The new keyword is for creating new object instances. And yes, JavaScript is a dynamic programming language, which supports the object-oriented programming paradigm.

  2. Use of new vs default for Structure Construction in Rust

    Oct 12, 2023 · I see some structures in Rust use a default for there construction, while I see others use new. 1 Is there any semantic difference between the use of new vs default, or is everything …

  3. Autodesk Construction Cloud API - Create new Project

    Jun 22, 2022 · I'am trying to implement an integration with Autodesk Construction Cloud, and I want to sync my projects from my app to Autodesk. It's not an issue to create projects with BIM 360 API, it …

  4. In what cases do I use malloc and/or new? - Stack Overflow

    Always use new." Why? What is the win here? For objects we need construction, but for memory blocks, you clearly document two ways to make coding mistakes (the more easily caught () vs [] in new and …

  5. How to initialize HashSet values by construction?

    Jan 11, 2010 · NOTE: Some answers omit `new HashSet<T> (int initialCapacity) parameter, if you already know the size of the collection use it.

  6. javascript - What is the difference between `throw new Error` and ...

    Feb 6, 2012 · It suggests that the latter (new Error()) is more reliable, since browsers like Internet Explorer and Safari (unsure of versions) don't correctly report the message when using the former.

  7. What does the keyword "new" do to a struct in C#? - Stack Overflow

    Feb 9, 2012 · In C#, Structs are managed in terms of values, and objects are in reference. From my understanding, when creating an instance of a class, the keyword new causes C# to use the class …

  8. What uses are there for "placement new"? - Stack Overflow

    Oct 21, 2008 · Has anyone here ever used C++'s "placement new"? If so, what for? It looks to me like it would only be useful on memory-mapped hardware.

  9. c# - Interface defining a constructor signature? - Stack Overflow

    One way to solve this problem is to leverage generics and the new () constraint. Instead of expressing your constructor as a method/function, you can express it as a factory class/interface.

  10. The new syntax "= default" in C++11 - Stack Overflow

    Apr 15, 2016 · We are creating new object in the memory started from address of variable x (instead of new memory allocation). This syntax is used to create object at pre-allocated memory. As in our case …