[openbeos] Re: Pointer or reference?

  • From: Stefano Ceccherini <burton666@xxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: 30 Mar 2004 07:51:56 -0000


>Unfortunately, the BeAPI adds more places where pointers must be used mainly 
>because some BeAPI objects delete themselves (why anyone would make objects 
>that 
>behave like that is beyond me).

Actually, this is a good thing. Other environments work too like this. In 
delphi, for example, objects delete themselves if they are part of a visual 
hierarchy. Otherwise you would have to keep track of all the objects (mostly 
views) you add (or keep a pointer to them in the parent class, which isn't 
needed, since you can use FindView() instead).



Stefano Ceccherini aka Jack Burton
-----------------------------------------------------------
Spazio ILLIMITATO per la tua Email, Scanner Antivirus,
Antispam, Backup e POP3. Prova la nuova Email di superEva:
http://webmail.supereva.it/
-----------------------------------------------------------


Other related posts: