const/immutable member functions

Kagamin spam at here.lot
Wed Jan 26 04:37:29 PST 2011


spir Wrote:

> >> >  attribute funcName inputParams ->  outputParams { body }
> > ReturnType funcAttributes funcName(params) { body }
> 
> So what?

So there's no need for FP-style syntax to just disambiguate attribute placing.

> > BTW the problem is in separation of function attributes from return type attributes. I'm afraid, your example doesn't solve it.
> 
> ??? what do you /actually/ mean?
> 
>      attribute funcName inputParams ->  attribute outputParams { body }

Look at the return type attribute. Whether it's a function attribute or type constructor? Both come first.


More information about the Digitalmars-d mailing list