From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-xa2c.google.com (mail-vk1-xa2c.google.com [IPv6:2607:f8b0:4864:20::a2c]) by sourceware.org (Postfix) with ESMTPS id F0D333858D39 for ; Fri, 21 Oct 2022 05:14:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F0D333858D39 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-vk1-xa2c.google.com with SMTP id g85so883201vkf.10 for ; Thu, 20 Oct 2022 22:14:26 -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=gj3hfQbBGKE86Lg341p24tycGC/WtWrGToOmAkfs5zQ=; b=YOCM7r1utQGafowQpRZx6Uo2xO6ot3Zi1MGjdh7qVWjwMvbLwGBPYG/mTIJcFjDiDG 8JWoseINmpIe24BB6YdyXqYoiR3r3sI/3fRrlifY/6CX6bzNDY4vGBapkHJaGCkkGJHC s+5w9B9nV5XKU6ufu8X0VbDrTHJrGJGB9+R0bsiDBKUOo9TF5BLMt0sQwPfSoNNFdB4k MbRYxgQAm5s5WbhX3sg5afnxux5UliH7an0W2cqRBqYocSke/L/axN3TbMGCYKObZ8h9 wL2wfVaXI6XMNPWUSf1odyStFaYldbDwLUlH/Ckw2BMySlAw4J7Shhwc2jMmAHYMHWj+ px1Q== 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=gj3hfQbBGKE86Lg341p24tycGC/WtWrGToOmAkfs5zQ=; b=2drehZmPKFyk9tTV9hxGyjSrWmFx1x3t/A3Av9lSff40Qv3gpgnGgxvYIS/vRrpgn6 /gEAnnU0JaNpNRY3/iC16xFgpiKEL0QhJO5yOSKhMoNvyD72O5xX1lj+ce1tkPT0Dsdr SMbhFSUuLIHp9pHcGYXE+6GD01y2D7vhv6dkklLh6HTKyD1zW5G+tvSTB6JZmpxBlRMU vBNcWEtWlCmb24OK+AjBjQAxzS0Tdky0Fah7dUjOASmF3YLZG1X05ETARSNP7XmmgaJ+ jovstGUIJaW14EgCqL6SYXZwuOT4T8JRYqLv+umVLQ2PKK8bcOPBpcr3ygsZ9P9MuRoa y7tw== X-Gm-Message-State: ACrzQf1Y0oLGCUK52nxsQg4DlCG/lN45gGA+V0jdk1PbhF0derPWMsyL eLjGutgNfdbMKDM0IPDG65awjxQO+gI8xdTkHP/A1FQw X-Google-Smtp-Source: AMsMyM68FW/fKTMVvz0ipP7alZ3p0TWxDm4ujAS3RMl4nWsKH/6abCzj75u6/j9XiJPBjr31ZxL2h3alDOES6ron25M= X-Received: by 2002:a1f:43cc:0:b0:3ab:ad61:bf73 with SMTP id q195-20020a1f43cc000000b003abad61bf73mr10375151vka.33.1666329266168; Thu, 20 Oct 2022 22:14:26 -0700 (PDT) MIME-Version: 1.0 References: <0986a08f-c28f-882c-8236-f5f3ecc5cb6a@bothner.com> In-Reply-To: From: Panicz Maciej Godek Date: Fri, 21 Oct 2022 07:14:13 +0200 Message-ID: Subject: Re: Building for Android To: Per Bothner Cc: kawa@sourceware.org Content-Type: multipart/alternative; boundary="000000000000fd281b05eb8483b5" 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: --000000000000fd281b05eb8483b5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I can confirm this: when I replaced the superclass' member identifiers shift-left, shift-top, clip-left, clip-top, clip-width, clip-height, selection-drawing-mode?, with - respectively - shiftLeft, shiftTop, clipLeft, clipTop, clipWidth, clipHeight and selectionDrawingMode, they are again visible in the subclass. czw., 20 pa=C5=BA 2022, 22:48 u=C5=BCytkownik Panicz Maciej Godek < godek.maciek@gmail.com> napisa=C5=82: > 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. > --000000000000fd281b05eb8483b5--