const/immutable member functions
spir
denis.spir at gmail.com
Wed Jan 26 03:14:46 PST 2011
On 01/26/2011 11:02 AM, Kagamin wrote:
>> This "problem" happens because D belongs to the C-family of languages which puts the return type_before_ the function name.
>> >
>> > Languages that don't follow this syntactic convention (some would call it a mistake) have it very consistent and readable:
>> > attribute funcName inputParams -> outputParams { body }
> ReturnType funcAttributes funcName(params) { body }
So what?
> 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 }
Denis
--
_________________
vita es estrany
spir.wikidot.com
More information about the Digitalmars-d
mailing list