Hi,

very cool! I think I'll start using private constructors very soon :)

El mar., 18 ago. 2020 a las 16:58, Christofer Dutz (<
christofer.d...@c-ware.de>) escribió:

> Hi all,
>
> and especially thanks to Josh for fixing this so quickly :-) *bigthumbsup*
>
> Updated Royale for me and rebuilt and now I can have my private
> constructor in my Enums ... awesome.
> I always hated that stupid hack how you could sort of simulate private
> constructors in default AS3.
>
> Chris
>
>
>
> Am 18.08.20, 11:18 schrieb "Piotr Zarzycki" <piotrzarzyck...@gmail.com>:
>
>     Chris,
>
>     Rebuild from source Chris if you will try any kind of new fix. It looks
>     like all our maven remote builds are down right now and infra still in
>     silence mode with help. I will ping them in couple of days.
>
>     Thanks,
>     Piotr
>
>     wt., 18 sie 2020 o 10:42 Christofer Dutz <christofer.d...@c-ware.de>
>     napisał(a):
>
>     > Hmm ...
>     >
>     > so the Issue was closed ... so was anything fixed/changed?
>     > Should I try it again with the latest update?
>     >
>     > Chris
>     >
>     > Am 17.08.20, 16:01 schrieb "Christofer Dutz" <
> christofer.d...@c-ware.de>:
>     >
>     >     Hi all,
>     >
>     >     for now I think I'll live with public constructors and not also
>     > checking the types in my "equals" method.
>     >
>     >     It's only code generated for my own usage and I'll probably not
> invest
>     > trying to find out what's wrong with the getClassTypeName stuff.
>     >
>     >     But would be happy to be able to fix this some time ... if
> there's
>     > anything I could to to help track down the issue ... just give me a
> ping.
>     >
>     >     Chris
>     >
>     >
>     >
>     >
>     >     Am 17.08.20, 10:07 schrieb "Christofer Dutz" <
>     > christofer.d...@c-ware.de>:
>     >
>     >         Hi Harbs,
>     >
>     >         so I attached the zip ... just to be on the safe side.
>     >         Thanks for the additional info ... I almost never use GitHub
>     > issues.
>     >
>     >
>     >         Chris
>     >
>     >         Am 16.08.20, 14:46 schrieb "Harbs" <harbs.li...@gmail.com>:
>     >
>     >             Also: here’s the list of acceptable files:
>     >
>     >
> https://docs.github.com/en/github/managing-your-work-on-github/file-attachments-on-issues-and-pull-requests
>     >
>     >             > On Aug 16, 2020, at 3:35 PM, Harbs <
> harbs.li...@gmail.com>
>     > wrote:
>     >             >
>     >             > Great.
>     >             >
>     >             > FYI you can attach files to Github issues using
> drag/drop.
>     >             >
>     >             > https://github.blog/2012-12-07-issue-attachments/
>     >             >
>     >             >> On Aug 16, 2020, at 3:20 PM, Christofer Dutz <
>     > christofer.d...@c-ware.de> wrote:
>     >             >>
>     >             >> Hi Harbs,
>     >             >>
>     >             >> Thanks for the clarification.
>     >             >> I created an issue ... unfortunately I couldn't find
> a way
>     > to attach files to it so I added my google-drive link to it.
>     >             >>
>     >             >> https://github.com/apache/royale-compiler/issues/158
>     >             >>
>     >             >> Chris
>     >             >>
>     >             >>
>     >             >>
>     >             >> Am 16.08.20, 11:55 schrieb "Harbs" <
> harbs.li...@gmail.com>:
>     >             >>
>     >             >>   OK. Looks like there’s two issues:
>     >             >>
>     >             >>   1. types with private constructors can not be an
> argument
>     > in methods (both instance and static methods).
>     >             >>   2. Return types with private constructors only
> works on
>     > static methods. non-static methods with these return types error.
>     >             >>
>     >             >>   Josh was the one who worked on the private
> constructor
>     > feature. Maybe he has more input.
>     >             >>
>     >             >>   Chris, can you attach this test project to a
>     > royale-compiler issue?
>     >             >>
>     >             >>> On Aug 16, 2020, at 12:21 PM, Christofer Dutz <
>     > christofer.d...@c-ware.de> wrote:
>     >             >>>
>     >             >>> Hi Harbs,
>     >             >>>
>     >             >>> So I whipped up a little example using my enums and
> the
>     > strange thing is, that here
>     >             >>> the getQualifiedClassName seems to work. However not
> the
>     > private constructor.
>     >             >>>
>     >             >>> I've zipped up my example here:
>     >             >>>
>     >
> https://drive.google.com/file/d/1SNMiH5xuUERbIiscuEH_JgcOLrBboj4j/view?usp=sharing
>     >             >>>
>     >             >>> So not really sure what I should do differently. I
> would
>     > be happy to solve the private constructor problem and then try to
> tackle
>     > the next one.
>     >             >>>
>     >             >>> Chris
>     >             >>>
>     >             >>> Am 16.08.20, 00:05 schrieb "Harbs" <
> harbs.li...@gmail.com
>     > >:
>     >             >>>
>     >             >>>  I’m not sure how you’re using private constructors.
>     >             >>>
>     >             >>>  The only two cases I’ve used it was for:
>     >             >>>  1. All static classes
>     >             >>>  2. Singletons where the instance is generated in the
>     > class.
>     >             >>>
>     >             >>>  It looks like you’re using casting with the Enums?
>     >             >>>
>     >             >>>> On Aug 14, 2020, at 7:03 PM, Christofer Dutz <
>     > christofer.d...@c-ware.de> wrote:
>     >             >>>>
>     >             >>>> Any idea what could be causing this? As soon as I
> remove
>     > the "private" in front of the constructor, all is good again.
>     >             >>>
>     >             >>>
>     >             >>
>     >             >>
>     >             >
>     >
>     >
>     >
>     >
>     >
>
>     --
>
>     Piotr Zarzycki
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to