On Sat, May 05, 2007 at 12:25:06PM -0500, Matt Sickler wrote: > It really depends on what the session does. > If its a really OO-centric module and uses all object states (like PoCo-IRC) > then you could use OBJECT exclusively (like PoCo-IRC). > If there are no object states, then OBJECT doesnt apply. > It really depends on what you are doing and how you want to accomplish it. > The only difference between the two is, OBJECT only appears in object states > (when it is the instance object that POE uses to call the > event/method/state) and HEAP is everywhere. > > On 5/5/07, John R. <[EMAIL PROTECTED]> wrote: > > > >I see in the documentation that HEAP is a good place for run time > >storage. About how about in OBJECT? Is OBJECT only for states? It > >seems possible to use it for data. > > > >Thanks, > > > >John > >
One other 'trick' is that the heap can be any type of scalar, so one can use whatever one likes as the heap, such as an arrayref, hashref and even a blessed reference such as an object. PoCo-IRC for instance has the component's object as it's heap. Cheers, -- Chris Williams aka BinGOs PGP ID 0x4658671F http://www.gumbynet.org.uk ==========================
pgpYputgeH9Yk.pgp
Description: PGP signature