divyang4481 / firebreath

Automatically exported from code.google.com/p/firebreath
0 stars 0 forks source link

Getters and Setters for property with additional parameters #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Brief Description:
From http://code.google.com/p/firebreath/wiki/classJSAPIAuto#Read-
write_properties
"For property functions, the same types are supported as for methods - 
except that property setters can only take one argument and getters none."

It will be cool if getters cat take arguments and setters more then one.

Use case:
dataObject.Content(TXT) = DataBytes;

Maybe I missed something, and this behavior can be implemented by existing 
means?

Original issue reported on code.google.com by bignikita on 18 Feb 2010 at 10:21

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
That use-case doesn't invoke a setter as you think it is.
It can be interpreted in two ways:

1) Content is a function that takes one argument and returns an object
2) Content is an object and you invoke its default function, passing one 
argument to it

Original comment by georg.fritzsche on 18 Feb 2010 at 3:39

GoogleCodeExporter commented 8 years ago
... if you need more details, please drop a mail on the mailing-list.

Original comment by georg.fritzsche on 18 Feb 2010 at 3:41