is there no solution?

View: New views
1 Messages — Rating Filter:   Alert me  

is there no solution?

by Vlad Patryshev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a couple of abstract val's in my abstract class; subclasses provide the value for those vals.
Now in this abstract class I call a validator - which uses those values; but the values are not instantiated by the moment the validator is called (in the body of the class).

One solution would be to have a def instead of val; then it works, but it is a little bit more cluttered.

Seems like a general problem, right?

--
Thanks,
-Vlad