From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-x931.google.com (mail-ua1-x931.google.com [IPv6:2607:f8b0:4864:20::931]) by sourceware.org (Postfix) with ESMTPS id 162C8384B0C9 for ; Thu, 20 Oct 2022 20:48:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 162C8384B0C9 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ua1-x931.google.com with SMTP id d8so734261uaw.11 for ; Thu, 20 Oct 2022 13:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=L5i+t9q1gC358jwA8KNnb3xbXUnHEnoQflGfvmlb0zQ=; b=ZdqlMx/YhFeXjiI4ydKdDq+RngreBJ3aMgOYUTJIBgq4OT0wtPsyNkxntr8Fdp726x G7JLkB8DK4iHr8SwZm6r48NDJ6x1vKL5bHqGlhKFyDuC2OF6qHWeShWDcAWsRh+Y5fyj qG2qPe04h8eO6cnnQ8XCikr8c9mH0zzhbTN/RbXJNsArae0nryAh0jdwJQ6143FJgY6K vVwccWka1P/+inWeXdAHnxNCVpu9kfHxb2Ziop8vOc4uE7PHEEZLE8BYlyxeFN+kar8P AzkdJ+rhc66hq2pZ+gFEzJ2StqXmpEANOxjDLe1cCiGoT76POW6YWYeNEMsSAIic0S2I 53zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L5i+t9q1gC358jwA8KNnb3xbXUnHEnoQflGfvmlb0zQ=; b=Jz0R3y9Zi/kRa50kX06vh9Zr53XyZ7ux4Nig2IzCTpjw6U14srxFZlV5MQZKzWhvhv yi/ix3TossyfG7rjRADUjeJqlGKgxkaAa7ygbBcc1aKOFr4Jpt8bFShdBum011Q2DCZ9 DUGyV+nIFbjWu1L6JALISOlcWdKLQu7WW4UB5QVVSjhyqM+ebtHA9J/IEbc6ItqIxh/7 m42xHUiO6iqrRHcdU9/YDZSGQ4vvY0iq0+eENcCQ5q2RmRm3xZD2yqWQ6NkosWcy5dPg FkYU8AbYhqH/a7sVHQdPE6u/CKktI0W7IM/3c6J5EGizSvPx/NwFYZKRRnOBYD3zYLj5 S6rg== X-Gm-Message-State: ACrzQf1UWIInb3j0hQuiVj1kkfu6VsRhEwDux+xzyxDj/jYZeSUxIdow FA4gSGVUJMD0cDL9cJhH2s1mnHaFvAJFkOZgNHzBryT2KM0= X-Google-Smtp-Source: AMsMyM5QY5WBIjNayMqj7TJfm3Lpjz6lGpN7+uK8U4S/SEADvydC47wbQ4jxI+OLe0t9P4h+PuTJWyphBvCpAflyj6Y= X-Received: by 2002:ab0:166f:0:b0:3e8:af59:df81 with SMTP id l44-20020ab0166f000000b003e8af59df81mr8908866uae.36.1666298920276; Thu, 20 Oct 2022 13:48:40 -0700 (PDT) MIME-Version: 1.0 References: <0986a08f-c28f-882c-8236-f5f3ecc5cb6a@bothner.com> In-Reply-To: From: Panicz Maciej Godek Date: Thu, 20 Oct 2022 22:48:24 +0200 Message-ID: Subject: Re: Building for Android To: Per Bothner Cc: kawa@sourceware.org Content-Type: multipart/alternative; boundary="0000000000003b992c05eb7d73b6" X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --0000000000003b992c05eb7d73b6 Content-Type: text/plain; charset="UTF-8" I've noticed several more issues with the kawa.jar that I produced by manually changing gnu/expr/Mangle.java: when I try to run the terminal version of GRASP, I get a bunch of warnings like: "no declaration seen for shift-left" "no declaration seen for shift-top" etc. Those identifiers are names of fields in a superclass. The superclass in this case is CharPainter: https://github.com/panicz/grasp-android/blob/master/stages/retreat/GRASP/src/text-painter.scm#L16 I use a "define-object" macro which - rather trivially - expands to "define-class": https://github.com/panicz/grasp-android/blob/master/stages/retreat/GRASP/src/define-object.scm (define-object (ClassName constructor-args ...)::Interface (define name :: type value) (define (method args ...) ...) (SuperClass super-constructor-args ...) init-code ...) expands to something like (define-class ClassName (Interface SuperClass) (name :: type init: value) ((method args ...) ...) ((*init* constructor-args ...) (invoke-special SuperClass (this) '*init super-constructor-args ...) init-code ...)) (and it certainly worked with the previous kawa.jar) Anyway, it seems that the code of the subclass is unable to see the slots defined in its parent class. I suspect that this might have something to do with mangling/unmangling. I will try to verify this tomorrow by replacing the identifiers like shift-left with something more like shiftLeft to see if that helps. --0000000000003b992c05eb7d73b6--