This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
named function and lambda
- From: "Yaroslav Kavenchuk" <kavenchuk at gmail dot com>
- To: kawa <kawa at sourceware dot org>
- Date: Mon, 3 Mar 2008 23:59:34 +0200
- Subject: 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.