Jacques Gélinas on Tue, 19 May 2020 19:37:54 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: "pari-users@pari.math.u-bordeaux.fr" <pari-users@pari.math.u-bordeaux.fr>
- Subject: Globals and GP2C
- From: Jacques Gélinas <jacquesg00@hotmail.com>
- Date: Tue, 19 May 2020 17:37:30 +0000
- Accept-language: fr-CA, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+QQt2olMldb5mRjeDPjGCYJ5O+Qum6oISXWqrQlf7GA=; b=MXtLCtuaIK6lb0+2KahpL/PeI9YFXJj1nOqKsQlQtqSWAjOxOFSJS6mrEhIAsf8LHLqUlWJmpCJNSHR6WLWsqiyUDHCCuoVVQUqeypStRxmpp8Na2vcYCdrdWCG5C84kDba3JUhUXgvFtt+zoSyz2zbJ1wBu7vOMyhOzjUzPDRcAJbF02ZhwSfCUWDl0e953eAh8AzstvUNMP5O7OEecfbzD/zypnSTJKnQiYOvgohcNbrWpF/2WEtO4rwq114mbxvKH2JWT7ZWmmvMY5hJ66+3/XDBehkXLPMujxTbFW4iiy9O7tmR7uJnV4tYo8wvUXZ9nKlvUE3hf31bWHgtPcA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nqIEg+B9Jdny87Ndo9RYrdWk1cacJI6vKG48KaLoCvU5RpmbQJo1BwtmsaGSNFXmXgtM4YzCRAgA8Hs6k5LfvxY10QDQXq/o+7VUZm9zer7s2KtDLUjQTPEytfO2svzkjQXTyW89mZatukzJ+vLsFLXF4cqsyrwaiNjaLy3gi7MZ1YAiMKF+/KMzNbLHpeiamE2zU6voKe/AC6LLIErslbFVNYuYR+PcAT3saKBj1PGLUlUx5gyxP1dP1EPb99s+gHaQCMtV3M2/l4vmW8YPsSnbY+8e8kXNmzhdK8wGMFRlP++uQRmRgxdkrTLo/5IIE4wJwNq1dEytU1rrAHsAGQ==
- Delivery-date: Tue, 19 May 2020 19:37:55 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+QQt2olMldb5mRjeDPjGCYJ5O+Qum6oISXWqrQlf7GA=; b=VzBscLB/g51LbomKe5hd+YqFdUux/DcxD4Kbw0ejG6UBmh3PqkPT+LxM65AY1gsjtZRfpmVhzSrHuGmAWXBuHqLwLeZTULNTJQYNP+6SVIW/jDILAqaZqnhTdjW6WAZX1XlOOyAcmkBnmj+kKf2wQAaChHCZHMgWn/1QTqFpRNM1WGD0Yh/7TRFfyJHSUSmToBTkCHmRrYcf4eyEa4C0N7u6Mo0OElERbpr3T2a0xAtkjGxFc1I+wqcoLoWajpJy+CTvw6NRz4xm+/z4WSTWP3h0n51nXMw3WAWuV72Xl2D1t33cXSzt9O3DEZMgtOHq41v5zqjeyyjJ6lLIv/mz7Q==
- Thread-index: AQHWLfjKEW5F8CFKgUCw+r7SL1Omrg==
- Thread-topic: Globals and GP2C
How can I convince GP2C to accept globals like GP does ?
======================= file glob.gp
[A,B]
rst() = { \\ reset global vars
A = 2020; B = "virus"; return();
}
infoglob() = { \\ print global vars
print("A = ", A, " B = ", B);
}
=======================
Two commands with results (weird version mismatch ?):
# gp2c -v
GP to C compiler version 0.0.11pl3
targeted at PARI/GP 2.12.0 (DEVELOPMENT VERSION)
# gp2c-run glob.gp
Reading GPRC: /home/Jacques/.gprc
GP/PARI CALCULATOR Version 2.12.1 (development 25169-c8ee522b6)
amd64 running cygwin (x86-64/GMP-6.1.2 kernel) 64-bit version
$ init_glob()
$ rst()
$ infoglob()
A = 2449958197289549828 B = virus
Jacques Gélinas
Blague: "Est-ce qu’on peut désinstaller et réinstaller 2020? Je pense qu’il y a un virus."