Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2003-10-19 07:09:26


"Daniel Frey" <daniel.frey_at_[hidden]> wrote in message
news:bmtp9j$3ff$1_at_sea.gmane.org...
Thorsten Ottosen wrote:

>> they should not expect that to be the only way to read f(x). Think of
>> several C library functions; think of Pascal procedures. It's beyond me
how
>> you can state that.

>I just state that I observed this. I don't want people to do this, I
>don't teach them to do this, I just observed that they actually do it.
>Shouldn't I state that? And especially your examples are a common source
>of trouble because C library functions, etc. do modify their parameters.
> In theory people read the docs so it shouldn't be a problem, but in
>practice, well, ... :)

AFAICT, the problem is not that the C library functions modify their
arguments, its rather
the use of pointers and fixed-sized buffers.

regards

Thorsten.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk