[Laszlo-dev] org.openlaszlo.sc.CompilerError: class names only differ by upper/lower case: "Top" versus "top"
Henry Minsky
hminsky at laszlosystems.com
Wed Aug 6 06:48:59 PDT 2008
the global var is a top level declaration so it would get put into
its own file,
hence it could cause the same problem as a class declaration.
On Wed, Aug 6, 2008 at 8:51 AM, P T Withington <ptw at pobox.com> wrote:
> I should have included my example code:
>
>> <canvas debug="true" >
>> <script when="immediate">
>> var free = 'outer';
>>
>> class Top {
>> function test () { return free; }
>> }
>>
>> class Sub extends Top {
>> var free = 'inner';
>>
>> function test () { return free; }
>> }
>>
>> var top = new Top;
>> var sub = new Sub;
>> Debug.info("top.test() => %s", top.test());
>> Debug.info("sub.test() => %s", sub.test());
>> </script>
>> </canvas>
>
> There is only one class Top. Is the check overly conservative?
>
> On 2008-08-06, at 08:39EDT, Donald Anderson wrote:
>
>> That check is in because classes must be named to files.
>> Class Glorp must be in file Glorp.as. But some file systems
>> including MacOS, do not have complete distinguishing between case:
>>
>> $ echo foo >> glorp.as
>> $ echo bar >> Glorp.as
>> $ cat glorp.as
>> foo
>> bar
>>
>>
>> On Aug 6, 2008, at 8:06 AM, P T Withington wrote:
>>
>>> Why am I getting this error when compiling to swf9?
>>
>>
>> --
>>
>> Don Anderson
>> Java/C/C++, Berkeley DB, systems consultant
>>
>> voice: 617-547-7881
>> email: dda at ddanderson.com
>> www: http://www.ddanderson.com
>>
>>
>>
>
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
More information about the Laszlo-dev
mailing list