Never use csPtr<anything> as a parameter. It should only be used (if
needed) as a return type. Use a normal pointer instead.

Greetings,

On Wed, Jul 29, 2009 at 5:54 PM, Sam Devlin<boomdabo...@hotmail.com> wrote:
> Hello CrystalSpace,
> I have completed my design of the proposed behaviour tree implementation.
> Please can anyone interested take the time to scan/read and
> compliment/critique the design posted today at
> http://www.crystalspace3d.org/blog/samd.
>
> To begin my main concern before programming is in the arguments passed to
> this method:
>
> virtual bool addChild (csPtr<iBTNode> child)
>
> My intention is to then assign the child to a csRef owned by the class, with
> the child being deleted when its parent is. Have I made the correct use of
> csPtr/csRef by passing the child as a csPtr or should it be passed in
> another form?
>
> Kind Regards, Sam
>
> ________________________________
> With Windows Live, you can organise, edit, and share your photos.
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Cel-main mailing list
> Cel-main@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cel-main
>
>



-- 
Project Manager of Crystal Space (http://www.crystalspace3d.org)
and CEL (http://cel.crystalspace3d.org)
Support Crystal Space. Donate at
https://sourceforge.net/donate/index.php?group_id=649
Personal page: http://users.telenet.be/jorritTyberghein/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Cel-main mailing list
Cel-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cel-main

Reply via email to