View Single Post
Old 21 April 2022, 21:13   #28
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,172
Quote:
Originally Posted by deimos View Post
It works, apparently, but I don't understand why so many functions are needed, for a start.
Usually they'd be provided by the standard library and you would never notice. The "standard" use case for implementing these functions yourself is to track allocations and detect mismatches in the use of "array new" vs. plain "delete" (i.e. Object* o = new Object[10] .. delete o). Note that you aren't properly dealing with allocation failures.

Quote:
Originally Posted by deimos View Post
Also, are there any opportunities to be smart, i.e. could I make new operators for things that need to go into chip memory?
That's possible, but I'd advise against it.
paraj is offline  
 
Page generated in 0.04731 seconds with 10 queries