auts/generic_processor.v
2020-04-30 02:02:30 +03:00

21 lines
381 B
V

module main
struct GenericProcessor {
name string
}
struct GenericCrusherProcessor {
//GenericProcessor
mut:
name string
}
fn new_generic_crusher_processor() &GenericCrusherProcessor {
gcp := &GenericCrusherProcessor{}
gcp.name = "generic_crusher_processor"
return gcp
}
fn (gpc &GenericCrusherProcessor) process(ob &Object) {
println("processing object: ${ob.name}")
}