From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88076 invoked by alias); 1 Apr 2017 19:52:52 -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 87232 invoked by uid 89); 1 Apr 2017 19:52:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 01 Apr 2017 19:52:49 +0000 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1cuP4q-0007DL-6j; Sat, 01 Apr 2017 21:52:48 +0200 Received: from 70-36-239-167.dsl.dynamic.fusionbroadband.com ([70.36.239.167] helo=localhost.localdomain) by mailfront10.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1cuP4i-0006m0-VE; Sat, 01 Apr 2017 21:52:41 +0200 Subject: Re: Help, writing kawa equivalent of java program To: Vasantha Ganesh References: <58919df1-afe7-ae3b-0fdc-bb428c8ba3ed@bothner.com> Cc: kawa@sourceware.org From: Per Bothner Message-ID: <90df5850-958b-db89-f6e4-93a12d6e5cf3@bothner.com> Date: Sat, 01 Apr 2017 19:52:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-q2/txt/msg00009.txt.bz2 On 04/01/2017 12:44 PM, Vasantha Ganesh wrote: > Thank you, that did work. Kawa complains that the interface that I > created in kawa is not an interface. (define-simple-class libc (library) (make-interface #t) (getpid::long)) - defines a field named make-interface. You probably want: (define-simple-class libc (library) interface: #t (getpid::long)) -- --Per Bothner per@bothner.com http://per.bothner.com/