From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id 566E43858D32 for ; Sat, 30 Sep 2023 18:36:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 566E43858D32 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-ot1-x329.google.com with SMTP id 46e09a7af769-6c63117a659so1479278a34.0 for ; Sat, 30 Sep 2023 11:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696098965; x=1696703765; darn=sourceware.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=UrUPv2hHCOA+KyE82pakyR0ll87MfJJ5U7HdLtV/X8o=; b=M8ZyYgbqYS9Fm03m0XsV5UrAi07nLW8vKq7Rw+OwaXXb5JmIzy7qZaswDxguVcCvc2 sMVm7ffps4pfI16rlFNGTXa6ySze1O/4WfZQlPtltqsYeSpzVvX9EF6qRn2NgDhMZhRF 8mBLZD7tGMWVBkKdndMW13wQ8vP26GHW/BimlY9//jzuhqovMrmon0PEiUoPdL31A/tf AwcqaenN1G/k8RZku288D7SeXPO+Ycv/HAk22M4z2wY6bR7zF6bTPZbV3DpQMLtjrYPe Xo4VoE28vAi97iZbp3OuWEiTM7QcAb3Zhj+RyiSES624WkEtSvPAhUyPkCZbsERqDKfu Wxag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696098965; x=1696703765; 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=UrUPv2hHCOA+KyE82pakyR0ll87MfJJ5U7HdLtV/X8o=; b=WftAO1reYH8kLUaEzefVScka8LYmXG7aCXQj0pTGSgDVLII2uen0hNO0MGYBS7mx2d SCQVXvJ1+KyomLaVHdwbnMpuwSjIFoCOUzWie13gatkF5K6c1y2KRO6fknslSVMZo/8M iMRyUpXMlL8ezRBxb3VKWU73VrT0U/QI2agfbc1QdK+lDQJaEtR7/wEW3FkMRKvmtSHJ itei1/JS3r9drrRP2Ib8aEdV1nTIoFwH4x8cGNaaHdPFVWCCTDubspVvEoOHQpj6J6vD Axf6/5GWpgjiNDdgNhelYP6I5gGGKkcp47BCD6+9co4sxPYBtwkm8vnJNzIqwqTjDomQ 1bKA== X-Gm-Message-State: AOJu0Yz3WXcLF/p0OTlLe42v7w/tZsMtzWYVH27qKBZmrKjwmUSa1Gbd FN/u2aMkPi66OB35LDtRizA6vSfD52q/3rDDSug= X-Google-Smtp-Source: AGHT+IGR4+ZHe648+PglGcSGz3yajnHszfBTFLJZoPYraJZEKjM+wBeRHRW9zWEe6a3y5KiItXkaQXsdEZvlhSnuIFI= X-Received: by 2002:a05:6830:6a03:b0:6c6:4843:2abb with SMTP id cz3-20020a0568306a0300b006c648432abbmr3471389otb.12.1696098965524; Sat, 30 Sep 2023 11:36:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Panicz Maciej Godek Date: Sat, 30 Sep 2023 20:35:54 +0200 Message-ID: Subject: Re: simple main example hello world To: Damien Mattei Cc: Per Bothner , Jamison Hope , kawa@sourceware.org Content-Type: multipart/alternative; boundary="00000000000058161c060697d006" X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,KAM_SHORT,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: --00000000000058161c060697d006 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes. String[] is parsed as ($bracket-apply$ String) When in doubt, you can always evaluate the expression: (call-with-input-string "(String[])" read) sob., 30 wrz 2023 o 20:22 Damien Mattei via Kawa napisa=C5=82(a): > thank you > > the simplest example works: > > (display "hello") (newline) > (format #t "The command-line was:~{ ~w~}~%" (command-line)) > > kawa test.scm > > i see kawa use some syntax extension such as []: > '((main args::String[])::void allocation: 'static (display "hello")) > that expands in curly-infix reader as: > '((main args::String ()) ::void allocation: 'static (display "hello")) > > is there a way to replace String[] in kawa by something that does not use > [] ? > > On Sat, Sep 30, 2023 at 6:03=E2=80=AFPM Per Bothner wro= te: > > > > As Jamison wrote - this can be the entirety of your test.scm: > > > > (display "hello") (newline) > > > > More information and suggestions here: > > https://www.gnu.org/software/kawa/Scripts.html > > > > -- > > --Per Bothner > > per@bothner.com http://per.bothner.com/ > --00000000000058161c060697d006--