Re: C++ mapping of OUT variable-length structures



On Wed, 24 Apr 2002, Diego Sevilla Ruiz wrote:

> I hope I can explain it well... Please, take a look at H&V book, pages
> 300-302. The question is that as the _out types are allocated by the
> callee, (and are passed by reference), there must be a way to deallocate
> the previous owned reference if you use a _var type.

So this is useful when you pass in (on the caller side) a non-empty
structure, right?

> In the C++ mapping (contrary to the C mapping) out types are always
> allocated by the callee and freed by the caller.

Does this also hold for arrays of variable-length items?

-- 
   .--= ULLA! =---------------------.   `We are not here to give users what
   \     http://cactus.rulez.org     \   they want'  -- RMS, at GUADEC 2001
    `---= cactus@cactus.rulez.org =---'
I'm a cross compiler: at weekends I dress up as Pascal...




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]