« Return to Thread: is there no solution?

is there no solution?

by Vlad Patryshev :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: is there no solution?