It is a true constant (as I understand it):

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/package.html#-Infinity

EdB



On Tue, Jan 8, 2013 at 1:14 PM, Michael Schmalle
<apa...@teotigraphix.com> wrote:
> Well, that makes sense because unless -Infinity is a true constant, - is the
> unary operator to the constant Infinity. Might want to look that up in the
> definition.
>
> Looking through the code now, Infinity is not considered a Literal, so I
> need to do some more research on that.
>
>
> Mike
>
>
> Quoting Erik de Bruin <e...@ixsoftware.nl>:
>
>> The compiler seems to think that '-Infinity' is a unary operator...
>>
>> EdB
>>
>>
>>
>> On Tue, Jan 8, 2013 at 12:42 PM, Michael Schmalle
>> <apa...@teotigraphix.com> wrote:
>>>
>>> Wow, your going to make me fire up Apache Eclipse heh?
>>>
>>> Should have put a do not disturb on the door knob! ;-)
>>>
>>> My guess is it has something to do with the emit Literal, I will check on
>>> it
>>> to see if I can come up with the answer.
>>>
>>> Let me know if you figure it out though.
>>>
>>>
>>> Mike
>>>
>>> Quoting Erik de Bruin <e...@ixsoftware.nl>:
>>>
>>>> The test for Infinity takes 'var a:Number = Infinity;' which compiles
>>>> (correctly) to 'var a:Number = Infinity'
>>>>
>>>> The test for Infinity takes 'var a:Number = -Infinity;' which compiles
>>>> (wrongly) to 'var a:Number = '
>>>>
>>>> No exceptions are thrown or anything.
>>>>
>>>> I'm keeping my commits as small as I can (one feature or fix each,
>>>> mostly) and I'm testing before each one (most of the time, still
>>>> sloppy when I get excited ;-))
>>>>
>>>> EdB
>>>>
>>>>
>>>>
>>>> On Tue, Jan 8, 2013 at 12:28 PM, Michael Schmalle
>>>> <apa...@teotigraphix.com> wrote:
>>>>>
>>>>>
>>>>> Hey,
>>>>>
>>>>> Hmm... I wonder if it's a Falcon bug? Where is the test dying?
>>>>>
>>>>> FYI, I haven't touched any code for about a week or so, I'm working on
>>>>> an
>>>>> audio project at the moment(that I'm ridiculously involved in :) )
>>>>>
>>>>> So you are safe with no merge conflicts for now. I will keep updating
>>>>> to
>>>>> see
>>>>> if you have committed anything new.
>>>>>
>>>>> Just please... :) Commit small and make sure the whole suite passes. So
>>>>> when
>>>>> I get back to this code I'm not lost. ;-)
>>>>>
>>>>> Mike
>>>>>
>>>>>
>>>>> Quoting Erik de Bruin <e...@ixsoftware.nl>:
>>>>>
>>>>>> Mike,
>>>>>>
>>>>>> I am working on adding tests for all AS language features and one of
>>>>>> the first on my list (Full Table the Wiki) is '-Infinity' in the
>>>>>> Global Constants section.
>>>>>>
>>>>>> The AS test I wrote for 'Infinity' passes, but when I add the '-' in
>>>>>> front of it for the test of negative infinity, the compiler gives up
>>>>>> and the test fails.
>>>>>>
>>>>>> Any ideas?
>>>>>>
>>>>>> EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Ix Multimedia Software
>>>>>>
>>>>>> Jan Luykenstraat 27
>>>>>> 3521 VB Utrecht
>>>>>>
>>>>>> T. 06-51952295
>>>>>> I. www.ixsoftware.nl
>>>>>>
>>>>>
>>>>> --
>>>>> Michael Schmalle - Teoti Graphix, LLC
>>>>> http://www.teotigraphix.com
>>>>> http://blog.teotigraphix.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Ix Multimedia Software
>>>>
>>>> Jan Luykenstraat 27
>>>> 3521 VB Utrecht
>>>>
>>>> T. 06-51952295
>>>> I. www.ixsoftware.nl
>>>>
>>>
>>> --
>>> Michael Schmalle - Teoti Graphix, LLC
>>> http://www.teotigraphix.com
>>> http://blog.teotigraphix.com
>>>
>>
>>
>>
>> --
>> Ix Multimedia Software
>>
>> Jan Luykenstraat 27
>> 3521 VB Utrecht
>>
>> T. 06-51952295
>> I. www.ixsoftware.nl
>>
>
> --
> Michael Schmalle - Teoti Graphix, LLC
> http://www.teotigraphix.com
> http://blog.teotigraphix.com
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Reply via email to