[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: External (C++) interfaces
Mike Griebling wrote:
> I'm not so sure that structured return values are a language extension
> since assignments of structured types are allowed and the language report
> doesn't disallow structured return values anywhere that I could see. I
> think it's just a compiler implementation issue and possibly a ETH
> defacto standard to NOT allow structured returns.
Sorry, but it *is* a language restriction. Oberon-2 Report, chapter 10.1,
last sentence of the first paragraph:
"The result type of a procedure can be neither a record nor an array."
That's not to say the language restriction did not arise because ETH didn't
want to complicate *their* compilers.
Frank