This page is no longer maintained — Please continue to the home page at www.scala-lang.org

DelayedInit does not like constructor arguments

No replies
roland.kuhn
Joined: 2011-02-21,
User offline. Last seen 35 weeks 3 days ago.

Hi,

I just opened https://lampsvn.epfl.ch/trac/scala/ticket/4396, which is
basically about the current (2.9.0-rc1) inability to derive from a
DelayedInit trait while using constructor arguments during
initialization. I realize that that was not needed for the original
reason of introducing DelayedInit (curing Application), but it is quite
useful to have for DSLs, so you can wrap the class body in library code
(I am trying to improve Akka FSM using this technique). Or am I on the
wrong path?

Regards,

Roland

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland