D - more or less power than C++?

Ben Phillips Ben_member at pathlink.com
Tue Mar 7 04:21:03 PST 2006


In article <dui6d5$2134$1 at digitaldaemon.com>, Johan Granberg says...
>
>Hasan Aljudy wrote:
>>> Because then i would have to call a method to read bar and that would 
>>> bee inefective. 
>> 
>> You know, CPUs are fast now a days, a single function call is not 
>> "ineffective".
>
>That argument does not hold if you are in a tight loop it will matter.

A one-line return method is going to get inlined by the compiler, so it is
unlikely you will see any performance difference at all.





More information about the Digitalmars-d mailing list