Is this function pure?

Ingo Oeser ioe-news at rameria.de
Tue Sep 18 12:52:04 PDT 2007


0ffh wrote:
> I am afraid I must disagree.
> We're talking functional purity in a programming context, not maths.
> It is perfectly allowable in a purely functional language to return
> a pointer to a heap allocated data structure.

Sorry, mixed that up with const functions.

Those (const functions) only depend on their parameters 
and have no effect besides their return value.

At least GCC defines them this way.

Sorry again.

Best Regards

Ingo Oeser




More information about the Digitalmars-d mailing list