You should use () to call the function gen_bin, that is you should do voice_speech(...,ins=gen_bin() )
++ Sam On Tue, Apr 8, 2014 at 6:16 AM, Den <[email protected]> wrote: > > def gen_bin() = > num = random.int(min=0.,max=4.) > log(level=1, "--- gen_bin: vbin#{num}.liq.pls ----" ) > "vbin#{num}.liq.pls" > end > > voice_speech(...,ins=string_of(gen_bin)) > > do not return a value: > --- vplayout if: <fun> > > voice_speech(...,ins=gen_bin) > > return error: > > this value has type > ()->_ (inferred at line 74 char 1 - line 78 char 3) > but it should be a subtype of (the type of the value at line 102, char 52) > string (inferred at line 102, char 53-54) > > > Where is correct return type ? > > > > > > > > ------------------------------------------------------------------------------ > Put Bad Developers to Shame > Dominate Development with Jenkins Continuous Integration > Continuously Automate Build, Test & Deployment > Start a new project now. Try Jenkins in the cloud. > http://p.sf.net/sfu/13600_Cloudbees > _______________________________________________ > Savonet-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/savonet-users ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
