Deutsch   English   Français   Italiano  
<tilrv3$ahc$1@gioia.aioe.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!usenet.goja.nl.eu.org!aioe.org!ehPmoIe1VPaiJg2plNRepQ.user.46.165.242.91.POSTED!not-for-mail
From: Arachide <houten.van@orange.fr>
Newsgroups: fr.comp.sys.atari
Subject: =?UTF-8?Q?Re=3a_FORTH_s=27=c3=a9toffe_en_Maths?=
Date: Tue, 18 Oct 2022 11:34:29 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tilrv3$ahc$1@gioia.aioe.org>
References: <tih82e$1637$1@gioia.aioe.org> <JtD5DXvL7NDvvWKyJU07lj22UOo@jntp>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="10796"; posting-host="ehPmoIe1VPaiJg2plNRepQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Thunderbird 680x0 for Windows powered by Atari
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: fr
Bytes: 1720
Lines: 32

Le 16/10/2022 à 23:23, OL a écrit :
> Salut Guillaume
> 
> Le FORTH pour moi c'est comme toi avec le C (sans doute bien pire!) cela 
> me semble une autre planète mais en tous les cas bravo, cela avance bien.
> 
> Olivier

Merci!
Oui le FORTH est assez particulier, on donne d'abord les paramètres puis 
ensuite le nom de la fonction.

Au lieu de v_pline(2,0,0,100,100) pour une ligne de (0,0) à (100,100), 
on écrira:

0 0 100 100 2 v_pline

Jusque là, c'est lisible... Mais si on doit faire un:
v_pline(2,0,0,x+1,2*y)

Ça devient:

0 0 x @ 1+ y @ 2* 2 v_pline

J'ai prévu l'utilisation de parenthèses (juste pour la lisibilité, elles 
sont complètement ignorées à l'exécution ) :

0 0 ( x @ 1+ ) ( y @ 2* ) 2  v_pline

Ça permet de mieux montrer les groupes.

Guillaume.