Importing Packages - TobCar/carla GitHub Wiki

Importing other packages is done the same way as in Scala and Java. At the top level of a ".crr" file write:

import com.example.package

Any shortcuts that work in Scala are also possible in Carla because Carla's compiler copies everything on the same line after the "import" keyword character by character. Carla does not ensure that it is importing a valid package. Instead, the generated code will throw an error and not compile.