Skip to content
  • 0 Votes
    2 Posts
    1k Views
    C
    Javascript abstracts the concept of pointers. Data is only ever passed around by reference. It is usually safer, since memory management is handled automatically and you can be sure an object equals another object if they are compared. If you need to compare objects to see if they are identical, you may have better luck creating a "compare" method that directly compares primitive attributes (strings can be compared directly, for instance). Hope this helps, sorry I can't provide a more specific implementation suggestion. Too many details to focus on at once.
  • Class instance is uninitialized

    Solved General and Desktop c++ qml class instance c4700
    5
    0 Votes
    5 Posts
    1k Views
    mrjjM
    Hi You always have to initialize a pointer. Else it will crash on use. Hint: There is only one constructor and it takes a parameter :)