Re: [Development] Enumerations in QML

2012-12-13 Thread Tony Van Eerd
> -Original Message- > > I don't think it adds the real value, which comes from just matching > C++ expectations. Enums help out in C++ because they're A) > high-performance B) high-readability and C) Object-Oriented. By > putting enums in their own files as their own types we lose most of

Re: [Development] Enumerations in QML

2012-12-13 Thread Alan Alpert
On Thu, Dec 13, 2012 at 2:09 AM, Erik Verbruggen wrote: > Replying to myself after a bit of pondering... > > On Dec 12, 2012, at 10:45, Verbruggen Erik wrote: > >> The problem with enums is that we couldn't make them fast. They will always >> be a lot slower than normal string literals. That is

Re: [Development] Enumerations in QML

2012-12-13 Thread Erik Verbruggen
Replying to myself after a bit of pondering... On Dec 12, 2012, at 10:45, Verbruggen Erik wrote: > The problem with enums is that we couldn't make them fast. They will always > be a lot slower than normal string literals. That is mostly because we could > not avoid the name lookup. Think about

Re: [Development] Enumerations in QML

2012-12-12 Thread Alan Alpert
On Wed, Dec 12, 2012 at 5:06 PM, Chris Adams wrote: > Hi, > ... >> Since this is currently necessary, it does mean that anyone who wants >> to see enums properly supported should help out with the v4vm work >> (currently the best way to fix QTBUG-24799). > > > The v4vm implementation is an orthogo

Re: [Development] Enumerations in QML

2012-12-12 Thread Chris Adams
Hi, > This entire thread should be revisited after QTBUG-24799 is fixed. > > > > I disagree here, because > A) How much we like enums affects the effective priority of > QTBUG-24799 (it's the main usecase that it blocks) > True. Although it also affects instanceOf and Qt.createComponent, at the

Re: [Development] Enumerations in QML

2012-12-12 Thread Alan Alpert
On Wed, Dec 12, 2012 at 3:53 PM, Chris Adams wrote: > Hi, > >... >> >> (4) Lack of "Enums" in QML is (another) example of how QML might be >> considered a "second-class-citizen" (mentioned by Chris, another example >> being composite types in QML are not backed by a QQmlType and thus are not >> a

Re: [Development] Enumerations in QML

2012-12-12 Thread Chris Adams
Hi, On Wed, Dec 12, 2012 at 10:51 PM, Charley Bay wrote: > Unto all so did sayeth Alan: > >> > What should enumeration declarations in QML look like? >> > > Did respondeth Erik: > >> And, also important: how much slower is it allowed to be than the current >> implementation? >> >> I remembered t

Re: [Development] Enumerations in QML

2012-12-12 Thread Charley Bay
Unto all so did sayeth Alan: > > What should enumeration declarations in QML look like? > Did respondeth Erik: > And, also important: how much slower is it allowed to be than the current > implementation? > > I remembered that there was talk about enums in QML before, so I dug > around a bit, an

Re: [Development] Enumerations in QML

2012-12-12 Thread Verbruggen Erik
On Dec 11, 2012, at 4:47, Alan Alpert <4163654...@gmail.com> wrote: > People keep asking for enumerations in QML. See QTBUG-15483 and > QTBUG-14861, both assigned to old Nokia identities (so don't trust > that 'in progress' ;) ). Now I don't know when these issues will be > resolved, but there's a

Re: [Development] Enumerations in QML

2012-12-11 Thread Chris Adams
Hi, I figured I weigh into this discussion: > But if you don't like those changes, you can do the var in a global > (.pragma library) script file and use that. Maybe this means proper > enum support isn't that urgent ;) . > It's not that the functionality is urgent; it's that currently, QML-doc

Re: [Development] Enumerations in QML

2012-12-11 Thread Alan Alpert
On Tue, Dec 11, 2012 at 12:26 AM, Mark wrote: > On Tue, Dec 11, 2012 at 4:47 AM, Alan Alpert <4163654...@gmail.com> wrote: >> People keep asking for enumerations in QML. See QTBUG-15483 and >> QTBUG-14861, both assigned to old Nokia identities (so don't trust >> that 'in progress' ;) ). Now I don'

Re: [Development] Enumerations in QML

2012-12-11 Thread Alan Alpert
On Tue, Dec 11, 2012 at 5:17 AM, Knoll Lars wrote: > > On Dec 11, 2012, at 4:47 AM, Alan Alpert <4163654...@gmail.com> wrote: > >> People keep asking for enumerations in QML. See QTBUG-15483 and >> QTBUG-14861, both assigned to old Nokia identities (so don't trust >> that 'in progress' ;) ). Now I

Re: [Development] Enumerations in QML

2012-12-11 Thread Charley Bay
> > > People keep asking for enumerations in QML. , > > Now I don't know when these issues will be > > resolved, but there's an important discussion to have before it can > > even be scheduled: What would proper enum support look like in QML? > > , > > I'd prefer: > > Item { > enum Wea

Re: [Development] Enumerations in QML

2012-12-11 Thread Knoll Lars
On Dec 11, 2012, at 4:47 AM, Alan Alpert <4163654...@gmail.com> wrote: > People keep asking for enumerations in QML. See QTBUG-15483 and > QTBUG-14861, both assigned to old Nokia identities (so don't trust > that 'in progress' ;) ). Now I don't know when these issues will be > resolved, but there

Re: [Development] Enumerations in QML

2012-12-11 Thread Mark
On Tue, Dec 11, 2012 at 4:47 AM, Alan Alpert <4163654...@gmail.com> wrote: > People keep asking for enumerations in QML. See QTBUG-15483 and > QTBUG-14861, both assigned to old Nokia identities (so don't trust > that 'in progress' ;) ). Now I don't know when these issues will be > resolved, but the

[Development] Enumerations in QML

2012-12-10 Thread Alan Alpert
People keep asking for enumerations in QML. See QTBUG-15483 and QTBUG-14861, both assigned to old Nokia identities (so don't trust that 'in progress' ;) ). Now I don't know when these issues will be resolved, but there's an important discussion to have before it can even be scheduled: What would pr