Re: [FALCON] using coerce_a

2013-10-02 Thread Darrell Loverin
; >>> should probably have a different JBurg pattern and reduce method just > >>>for > >>> this case. > >>> > >>> I'm also not convinced this covers all the relevant situations where a > >>> coerce_a might be necessary. For example

Re: [FALCON] using coerce_a

2013-10-02 Thread Alex Harui
t situations where a >>> coerce_a might be necessary. For example, suppose that instead of being >>> assigned to a left-hand-side of type *, the ternary expression is being >>> passed as a argument to a function that has a type * parameter. That >>> might also need

Re: [FALCON] using coerce_a

2013-10-02 Thread Darrell Loverin
o a left-hand-side of type *, the ternary expression is being >> passed as a argument to a function that has a type * parameter. That >> might also need a coerce_a. >> >> I'd put a comment in the code that this is questionable. But if it gets >> your app further towards worki

Re: [FALCON] using coerce_a

2013-10-02 Thread Alex Harui
. That >might also need a coerce_a. > >I'd put a comment in the code that this is questionable. But if it gets >your app further towards working, it's good. > >- Gordon > >-Original Message- >From: Alex Harui [mailto:aha...@adobe.com] >Sent: Wednesda

RE: [FALCON] using coerce_a

2013-10-02 Thread Gordon Smith
lto:aha...@adobe.com] Sent: Wednesday, October 02, 2013 11:52 AM To: dev@flex.apache.org Subject: Re: [FALCON] using coerce_a The code only thinks about coercing if there is a bracket [] node. It gets the type of the left hand side via resolveType and compares the resolveType of the clause node an

Re: [FALCON] using coerce_a

2013-10-02 Thread Alex Harui
setproperty >>> private,flash.events:EventDispatcher,Object,private,,http://adobe.com/A >>>S >>>3 >>>/ >>>2006/builtin:null >>> >>>I'm beginning to think this is an AIR bug since the Falcon ABC runs fine >>>on Flash.

Re: [FALCON] using coerce_a

2013-10-02 Thread Gordon Smith
. >> >> >>Thanks, >>-Alex >> >> >> >>On 9/30/13 10:50 PM, "Alex Harui" wrote: >> >>>There's no error, the Dictionary value appears be a Number instead of an >>>instance. >>> >>>Are you sure

Re: [FALCON] using coerce_a

2013-10-02 Thread Alex Harui
nstance. >> >>Are you sure that Vector access doesn't come through this code? I think >>I'll start by testing only for ANY_TYPE and adding a coerce_a instead of >>calling coerce() which would also coerce to any destination type. >> >>Thanks for the advice,

Re: [FALCON] using coerce_a

2013-10-01 Thread Alex Harui
__ >From: Darrell Loverin [darrell.love...@gmail.com] >Sent: Monday, September 30, 2013 6:11 PM >To: dev@flex.apache.org >Subject: Re: [FALCON] using coerce_a > >I generally agree. I don't think I'd try to do anything inside the ternary >exp

RE: [FALCON] using coerce_a

2013-09-30 Thread Alex Harui
estination type. Thanks for the advice, -Alex From: Darrell Loverin [darrell.love...@gmail.com] Sent: Monday, September 30, 2013 6:11 PM To: dev@flex.apache.org Subject: Re: [FALCON] using coerce_a I generally agree. I don't think I'd try to do an

Re: [FALCON] using coerce_a

2013-09-30 Thread Darrell Loverin
type (not just > Dictionary), is type *. So I think it is OK to codegen coerce_a before > assignment to any foo[bar] expression. > > Darrell, do you agree or disagree? > > - Gordon > > > -Original Message- > From: Darrell Loverin [mailto:darrell.love...@gmail.co

RE: [FALCON] using coerce_a

2013-09-30 Thread Gordon Smith
ell, do you agree or disagree? - Gordon -Original Message- From: Darrell Loverin [mailto:darrell.love...@gmail.com] Sent: Monday, September 30, 2013 3:41 PM To: dev@flex.apache.org Subject: Re: [FALCON] using coerce_a coerce_a Operation Coerce a value to the any type. Format coerce_a Form

Re: [FALCON] using coerce_a

2013-09-30 Thread Darrell Loverin
remind me what the "a" in coerce_a means? > > - Gordon > > -Original Message- > From: Alex Harui [mailto:aha...@adobe.com] > Sent: Monday, September 30, 2013 2:43 PM > To: dev@flex.apache.org > Subject: [FALCON] using coerce_a > > Gordon, Darrell (

RE: [FALCON] using coerce_a

2013-09-30 Thread Gordon Smith
Can you remind me what the "a" in coerce_a means? - Gordon -Original Message- From: Alex Harui [mailto:aha...@adobe.com] Sent: Monday, September 30, 2013 2:43 PM To: dev@flex.apache.org Subject: [FALCON] using coerce_a Gordon, Darrell (mostly) My latest problem appear

[FALCON] using coerce_a

2013-09-30 Thread Alex Harui
Gordon, Darrell (mostly) My latest problem appears to be in assigning to a Dictionary. For the following code: var dict:Dictionary = new Dictionary(); Var i:int; Dict["foo"] = (i == 0 ? new SomeClass() : new SomeOtherClass()); MXMLC generates a coerce_a after the constructProp for both SomeClas