[Vala] Class vs struct with signal



I was using a struct when connecting to my signal, but now I'm using a
class. This code now longer compiles, does anyone know what I'm doing wrong?

         Logging.get_default ().publish.connect ((LogMsg) => {

            this.log (LogMsg) ;

         }) ;

I get the following error message:

BalisticaApplication.c: In function ‘__lambda12_’:
BalisticaApplication.c:311:10: error: ‘_tmp0_’ undeclared (first use in
this function)
  LogMsg* _tmp0_ = NULL;
          ^
BalisticaApplication.c:311:10: note: each undeclared identifier is reported
only once for each function it appears in
src/CMakeFiles/balistica.dir/build.make:178: recipe for target
'src/CMakeFiles/balistica.dir/BalisticaApplication.c.o' failed

Steven N. Oliver


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]