Re: [E-devel] Eo API parameter nullability

2014-11-19 Thread Cedric BAIL
Hello, On Wed, Nov 19, 2014 at 1:13 PM, Tom Hacohen wrote: > On 05/11/14 19:28, Felipe Magno de Almeida wrote: >> I chatted with TAsn and q66 on IRC on 'parameter nullability'. What do >> I mean by that? >> >> elm_widget_part_text_set(widget, NULL, "set this text to the default part"); >> >> The

Re: [E-devel] Eo API parameter nullability

2014-11-19 Thread Tom Hacohen
On 05/11/14 19:28, Felipe Magno de Almeida wrote: > Hello, > > I chatted with TAsn and q66 on IRC on 'parameter nullability'. What do > I mean by that? > > elm_widget_part_text_set(widget, NULL, "set this text to the default part"); > > The thing is, some languages that are being bound to EFL don't

Re: [E-devel] Eo API parameter nullability

2014-11-06 Thread The Rasterman
On Thu, 6 Nov 2014 20:01:45 -0200 Felipe Magno de Almeida said: > On Thu, Nov 6, 2014 at 6:45 PM, Davide Andreoli > wrote: > > 2014-11-06 3:59 GMT+01:00 Carsten Haitzler : > > > >> On Wed, 5 Nov 2014 23:42:46 -0300 Vinícius dos Santos Oliveira > >> said: > >> > >> > 2014-11-05 23:40 GMT-03:00 C

Re: [E-devel] Eo API parameter nullability

2014-11-06 Thread The Rasterman
On Thu, 6 Nov 2014 20:06:48 -0200 Felipe Magno de Almeida said: > Hello raster, > > On Thu, Nov 6, 2014 at 12:40 AM, Carsten Haitzler > wrote: > > On Wed, 5 Nov 2014 22:52:10 -0200 Felipe Magno de Almeida > > said: > > > >> On Wed, Nov 5, 2014 at 10:17 PM, Carsten Haitzler > >> wrote: > >> >

Re: [E-devel] Eo API parameter nullability

2014-11-06 Thread Felipe Magno de Almeida
Hello raster, On Thu, Nov 6, 2014 at 12:40 AM, Carsten Haitzler wrote: > On Wed, 5 Nov 2014 22:52:10 -0200 Felipe Magno de Almeida > said: > >> On Wed, Nov 5, 2014 at 10:17 PM, Carsten Haitzler >> wrote: >> > On Wed, 5 Nov 2014 17:28:56 -0200 Felipe Magno de Almeida >> > said: >> > >> > i'm in

Re: [E-devel] Eo API parameter nullability

2014-11-06 Thread Felipe Magno de Almeida
On Thu, Nov 6, 2014 at 6:45 PM, Davide Andreoli wrote: > 2014-11-06 3:59 GMT+01:00 Carsten Haitzler : > >> On Wed, 5 Nov 2014 23:42:46 -0300 Vinícius dos Santos Oliveira >> said: >> >> > 2014-11-05 23:40 GMT-03:00 Carsten Haitzler : >> > >> > > oh shit - yes. you're right. the other way around. m

Re: [E-devel] Eo API parameter nullability

2014-11-06 Thread Davide Andreoli
2014-11-06 3:59 GMT+01:00 Carsten Haitzler : > On Wed, 5 Nov 2014 23:42:46 -0300 Vinícius dos Santos Oliveira > said: > > > 2014-11-05 23:40 GMT-03:00 Carsten Haitzler : > > > > > oh shit - yes. you're right. the other way around. maybe not @null but > > > @skipnull ? ie it means IF this paramete

Re: [E-devel] Eo API parameter nullability

2014-11-05 Thread The Rasterman
On Wed, 5 Nov 2014 23:42:46 -0300 Vinícius dos Santos Oliveira said: > 2014-11-05 23:40 GMT-03:00 Carsten Haitzler : > > > oh shit - yes. you're right. the other way around. maybe not @null but > > @skipnull ? ie it means IF this parameter is NULL, it's skipped (ignored). > > this > > then does

Re: [E-devel] Eo API parameter nullability

2014-11-05 Thread Vinícius dos Santos Oliveira
2014-11-05 23:40 GMT-03:00 Carsten Haitzler : > oh shit - yes. you're right. the other way around. maybe not @null but > @skipnull ? ie it means IF this parameter is NULL, it's skipped (ignored). > this > then does nicely imply that the param can be made optional in langs that > support it (as wit

Re: [E-devel] Eo API parameter nullability

2014-11-05 Thread The Rasterman
On Wed, 5 Nov 2014 22:52:10 -0200 Felipe Magno de Almeida said: > On Wed, Nov 5, 2014 at 10:17 PM, Carsten Haitzler > wrote: > > On Wed, 5 Nov 2014 17:28:56 -0200 Felipe Magno de Almeida > > said: > > > > i'm in favor of "as it stands right now". why? if we explicitly make > > something nullabl

Re: [E-devel] Eo API parameter nullability

2014-11-05 Thread The Rasterman
On Wed, 5 Nov 2014 17:28:56 -0200 Felipe Magno de Almeida said: i'm in favor of "as it stands right now". why? if we explicitly make something nullable to have it there, bindings will be able to drop ALL parameters i don't mark as @null - they are all optional. and that's a really unexpected beha

Re: [E-devel] Eo API parameter nullability

2014-11-05 Thread Felipe Magno de Almeida
On Wed, Nov 5, 2014 at 10:17 PM, Carsten Haitzler wrote: > On Wed, 5 Nov 2014 17:28:56 -0200 Felipe Magno de Almeida > said: > > i'm in favor of "as it stands right now". why? if we explicitly make something > nullable to have it there, bindings will be able to drop ALL parameters i > don't > ma

Re: [E-devel] Eo API parameter nullability

2014-11-05 Thread Cedric BAIL
Hello, On Wed, Nov 5, 2014 at 8:28 PM, Felipe Magno de Almeida wrote: > I chatted with TAsn and q66 on IRC on 'parameter nullability'. What do > I mean by that? > > elm_widget_part_text_set(widget, NULL, "set this text to the default part"); > > The thing is, some languages that are being bound t

[E-devel] Eo API parameter nullability

2014-11-05 Thread Felipe Magno de Almeida
Hello, I chatted with TAsn and q66 on IRC on 'parameter nullability'. What do I mean by that? elm_widget_part_text_set(widget, NULL, "set this text to the default part"); The thing is, some languages that are being bound to EFL don't have a NULL value for all objects or references. Which means t