pure or not pure?

Steven Schveighoffer schveiguy at yahoo.com
Wed Apr 9 14:28:24 PDT 2008


"Georg Wrede" wrote
> Steven Schveighoffer wrote:
>> pure char[] f(int x, int y)
>> {
>>    char[] c = new char[y];
>>    c[] = (char)x;
>
> return c; // I presume.
>
>> }

Yes, I forgot that statement, thanks :)  For some reason, Outlook Express 
didn't complain that this was an error :P

> It's really a shame that A/W don't elaborate on these things. Now we are 
> only getting increasingly unsure about stuff, and at the same time the 
> combined brain-cell-hours we invest here might simply be a wild goose 
> chase. And after all, most of this is just what they eventually *decide*. 
> We could use some help and guidelines, or even opinions on these things.
>
> And we could even be of help to them, since right now there seem to be a 
> lot of very smart, motivated and able people here. Maybe actually more 
> than ever before.

This is exactly why I asked these questions :)

-Steve 





More information about the Digitalmars-d mailing list