From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by sourceware.org (Postfix) with ESMTPS id CF3073857020 for ; Wed, 16 Dec 2020 08:49:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CF3073857020 Received: by mail-lf1-x12b.google.com with SMTP id u18so46349375lfd.9 for ; Wed, 16 Dec 2020 00:49:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=zcfoXv+FkRPBzq11RWc7TYZ1POELIKc2t5LII67y1iA=; b=bciPqX/Lj9xowY9Wnc6oxcPZ0jsUzVT/zOJ0C7VyXjXdnDdHbrZPJIiH43vbWvM3yd Pf7KfryjgZvlGlPJgeM4jOuNds7e7DSj5hKQoZttf32566TjWhw9qvQ2OgBV2/yeowC1 NkSPx3/manvILZ8fclcIxyY0GvKFEUM4j+R5zzO4v4QCpPcLHediAJo+ThLyeU1t52+x ILNfXkiEv6nuAIPDALkvzPS4ZoD0jqOdMa+S1742Yr7LmiWWMu9fVq/gWgdnBCKOk+3G Le4rEqybOQoZ3owsDA7Sa4K3cQSzDnR0Vt4XoOCPvO5vM5P/TSxx+GJkzPlaW5IHv/jF b2Bw== X-Gm-Message-State: AOAM532KTZPRsXLUuB/P+6u6dyoIHF5mT2lf92nJSYydh0wSopPtzUJ7 aQ5OlpRKQh5vv0ezsGX/sTACROqk6Dm/DNCDQYt8pJ+vFkDBJQ== X-Google-Smtp-Source: ABdhPJysoOUQP1j6FtlpW2uzW7tiitKSgxxCDHTXm/GCuTMlmr8e1StB7No2I4cTnbwX6y32jno7oO1l+ejQd3KLbOM= X-Received: by 2002:ac2:4209:: with SMTP id y9mr13551732lfh.431.1608108578129; Wed, 16 Dec 2020 00:49:38 -0800 (PST) MIME-Version: 1.0 From: Duncan Mak Date: Wed, 16 Dec 2020 03:49:01 -0500 Message-ID: Subject: Disambiguate method from function To: kawa mailing list X-Spam-Status: No, score=-2.4 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.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: kawa@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Kawa mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2020 08:49:41 -0000 Hello all, I have some code like this, (define-simple-class Person () > ((hello) > (hello "Calling from method"))) > (define (hello message) (format #t "~A~%" message)) > (hello "Calling from function") > ((Person):hello) This doesn't work because I think it gets confused between hello the method and hello the function: test.scm:3:4: call to 'hello' has too many arguments (1; must be 0) I could of course resolve this by renaming 'hello' the function to something like 'hello*', but is there another way to disambiguate the two? -- Duncan.