Make dur a property?

Jacob Carlborg doob at me.com
Wed Jan 23 12:43:54 PST 2013


On 2013-01-23 19:48, Nick Sabalausky wrote:

> Having the *caller* decide whether something is a property or not makes
> as much sense as having the caller decide the function's name,
> signature and semantics.

In Ruby parentheses are optional when calling a method. I have never had 
any problem with that, although in Ruby you invoke a callable object 
with ".call". Property setters are more explicit in Ruby than D:

def foo= (value)
end

The equal sign is actually part of the method name.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list