From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25941 invoked by alias); 18 Sep 2017 11:22:14 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 25931 invoked by uid 89); 18 Sep 2017 11:22:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=Hx-languages-length:363 X-HELO: homiemail-a23.g.dreamhost.com Received: from sub3.mail.dreamhost.com (HELO homiemail-a23.g.dreamhost.com) (69.163.253.7) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 18 Sep 2017 11:22:12 +0000 Received: from homiemail-a23.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a23.g.dreamhost.com (Postfix) with ESMTP id E06434B006D; Mon, 18 Sep 2017 04:22:10 -0700 (PDT) Received: from vereq.eip10.org (cpe-74-75-122-130.maine.res.rr.com [74.75.122.130]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: chaw@eip10.org) by homiemail-a23.g.dreamhost.com (Postfix) with ESMTPSA id C0B224B006A; Mon, 18 Sep 2017 04:22:10 -0700 (PDT) Received: from chaw by vereq.eip10.org with local (Exim 4.84_2) (envelope-from ) id 1dtu7t-0005vn-Gk; Mon, 18 Sep 2017 07:22:09 -0400 To: Sonny To cc: Kawa mailing list Subject: Re: using lambda to implement one method interface From: "Sudarshan S Chawathe" Reply-To: "Sudarshan S Chawathe" In-reply-to: Your message of "Mon, 18 Sep 2017 06:35:17 -0000." MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22801.1505733729.1@vereq.eip10.org> Date: Mon, 18 Sep 2017 11:22:00 -0000 Message-ID: <22802.1505733729@vereq.eip10.org> X-IsSubscribed: yes X-SW-Source: 2017-q3/txt/msg00065.txt.bz2 > how would I implement an interface with multiple methods? I have found that simply defining the methods required by an interface (with the proper names and type signatures) works, in the sense that the resulting objects can be used anywhere that requires objects implementing the interface. Regards, -chaw