Empty Constructors?

35 views
Skip to first unread message

owreese

unread,
Jul 15, 2012, 10:05:41 AM7/15/12
to treehugg...@googlegroups.com
Trying to get an empty constructor for a class going:

def this() = this("yo", "mama")

with the following:

DEF("this") withParams(Nil) := THIS APPLY(LIT("yo"),LIT("mama"))

but what I get is

def `this` = this("yo", "mama")

How do I loose the back ticks and put in the parenthesis?

eugene yokota

unread,
Jul 15, 2012, 3:50:16 PM7/15/12
to treehugg...@googlegroups.com
You got me on this one.
I don't think there's a way to declare constructors using treehugger DSL.
Could you make it into a github issue?

-eugene
> --
> You received this message because you are subscribed to the Google Groups
> "treehugger-scala" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/treehugger-scala/-/Fp2leM75R_QJ.
> To post to this group, send email to treehugg...@googlegroups.com.
> To unsubscribe from this group, send email to
> treehugger-sca...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/treehugger-scala?hl=en.

eugene yokota

unread,
Jul 15, 2012, 4:31:26 PM7/15/12
to treehugg...@googlegroups.com
I have a fix so I am submitting this myself as [#17].

-eugene

[#17]: https://github.com/eed3si9n/treehugger/issues/17
Reply all
Reply to author
Forward
0 new messages