pchapin / scala

Scalaness: A stagged programming system for embedded systems based on Scala.
0 stars 0 forks source link

Objects and classes representing nesT modules must extend NesTComponent #8

Open pchapin opened 11 years ago

pchapin commented 11 years ago

Right now any class or module with a primary constructor ending with a string literal is treated as a wrapper around a nesT inclusion. However, the intention is for all such classes or modules to also extend the trait NesTComponent. This trait contains essential runtime support for manipulating nesT modules; its presence should be verified. In particularly only classes (or modules) that extend NesTComponent should be searched for nesT inclusions and, furthermore, it should be a compile time error if no inclusion is found in such a class or module.