New Object passed as parameter question

2017-12-15 Thread John Baughman via 4D_Tech
If I am making multiple calls to a method and passing parameters via a C_OBJECT, is their any memory issues using New object. For example… $printedHeight:=Timesheets_BuildReport (New object("line";"employeeLine1";"employee";$employeeName;"taskdate";!2017-01-02!)) $printedHeight:=Timesheets_

Re: New Object passed as parameter question

2017-12-15 Thread Douglas von Roeder via 4D_Tech
John: Objects respect scope so they don't have to be explicitly cleared. That's different than an hList or our favorite word processor. :-) Also, 4D uses "ref counting" when it works with C_Object so that makes them even more memory efficient. -- Douglas von Roeder 949-336-2902 On Fri, Dec 15

Re: New Object passed as parameter question

2017-12-15 Thread John Baughman via 4D_Tech
Thanks Doug. My mind can rest easy now. I think I sweat the small stuff too much on occasion. John > On Dec 15, 2017, at 6:51 AM, Douglas von Roeder via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > John: > > Objects respect scope so they don't have to be explicitly cleared. That's > different

Re: New Object passed as parameter question

2017-12-15 Thread Douglas von Roeder via 4D_Tech
John: We spend a lot of time thinking "OK, but if…" so I see that as being part of the job. As I told a client of mine who's a big college football fan: "Football is a game of inches that makes heroes. Programming 4D just creates neurotics." :-) -- Douglas von Roeder 949-336-2902 On Fri, De