Re: [E-devel] Use struct instead of multiple arguments in Property accessors

2017-03-31 Thread Gustavo Sverzut Barbieri
while I get most arguments, my preference is always to stick with higher lever, more meaningful types... as explained in examples in this thread, most confusing usages is when you have 2 sets of data, like "cur, prev", then you come from 4 to 8 parameters (ie: color) and errors are easier to happen

Re: [E-devel] Use struct instead of multiple arguments in Property accessors

2017-03-31 Thread marcel-hollerbach
On Fri, Mar 31, 2017 at 07:59:01PM +0900, Carsten Haitzler wrote: > On Fri, 31 Mar 2017 11:55:34 +0200 marcel-hollerb...@t-online.de said: > > > On Fri, Mar 31, 2017 at 06:19:53PM +0900, Carsten Haitzler wrote: > > > On Fri, 31 Mar 2017 16:00:52 +0900 Conrad Um said: > > > > > > > This is simila

Re: [E-devel] Use struct instead of multiple arguments in Property accessors

2017-03-31 Thread The Rasterman
On Fri, 31 Mar 2017 11:55:34 +0200 marcel-hollerb...@t-online.de said: > On Fri, Mar 31, 2017 at 06:19:53PM +0900, Carsten Haitzler wrote: > > On Fri, 31 Mar 2017 16:00:52 +0900 Conrad Um said: > > > > > This is similar to bu5hm4n's idea, but a little different. (Not pass by > > > value, but ref

Re: [E-devel] Use struct instead of multiple arguments in Property accessors

2017-03-31 Thread marcel-hollerbach
On Fri, Mar 31, 2017 at 06:19:53PM +0900, Carsten Haitzler wrote: > On Fri, 31 Mar 2017 16:00:52 +0900 Conrad Um said: > > > This is similar to bu5hm4n's idea, but a little different. (Not pass by > > value, but reference) > > http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/

Re: [E-devel] Use struct instead of multiple arguments in Property accessors

2017-03-31 Thread The Rasterman
On Fri, 31 Mar 2017 16:00:52 +0900 Conrad Um said: > This is similar to bu5hm4n's idea, but a little different. (Not pass by > value, but reference) > http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg82744.html > > While studying oop, I found that properties are usually e

[E-devel] Use struct instead of multiple arguments in Property accessors

2017-03-31 Thread Conrad Um
This is similar to bu5hm4n's idea, but a little different. (Not pass by value, but reference) http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg82744.html While studying oop, I found that properties are usually expressed as struct or object instead of multiple arguments. Fo