C++ vs Lisp
renoX
renosky at free.fr
Sat May 24 03:43:59 PDT 2008
Simen Kjaeraas a écrit :
> On Mon, 19 May 2008 17:01:28 +0200, Bill Baxter
> <dnewsgroup at billbaxter.com> wrote:
>> Simen Kjaeraas wrote:
>>> bearophile Wrote:
>>>> Simen Kjaeraas:
>>>>> In D, you can* use list.sort.reverse.process or
>>>>> list.sort().reverse().process(), if you like parentheses.
>>>> You must use parentheses there :-)
>>> Not according to my programs. Well, for process, maybe. I just
>>> tested with sort and reverse, which works without parentheses.
>>
>> And if list is a built-in array, you must *not* use parentheses on
>> sort and reverse.
>>
>> --bb
>
> And if the moon is in senit, and it's cloudy and tuesday?
Agreed, 'properties' are in my book (well in OOSC book actually) a way
to hide the distinction between attributes and functions, to go further
in hiding implementation details both normal functions and member
functions should be callable without ().
Of course this means that to get the address of a function, you need a
prefix operator(&), but this is a not so frequent operation..
Regards,
renoX
More information about the Digitalmars-d
mailing list