This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

named function and lambda


#|kawa:61|# (define f1 (lambda (x :: int) :: String (as String x)))
#|kawa:62|# f1:Class
class gnu.expr.ModuleMethod
#|kawa:63|# (define (f2 x :: int) :: String (as String x))
#|kawa:64|# f2:Class
class gnu.expr.ModuleMethod
#|kawa:65|# (f1:numParameters)
1
#|kawa:66|# (f2:numParameters)
1
#|kawa:67|# (f1:getParameterType 0)
ClassType java.lang.Object
#|kawa:68|# (f2:getParameterType 0)
Type int
#|kawa:69|#

Why lambda not have parameter type?
And how get function return type?

Thanks!

-- 
WBR, Yaroslav Kavenchuk.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]