Liste des Groupes | Revenir à cl forth |
On Thu, 25 Jul 2024 9:06:03 +0000, mhx wrote:I gather the (integer) 6 is autoconverted. Why not I as well?
>DO you mean something like the below? The code stays the
same but it is possible to choose a different type of
variable (from BYTE to arbitrary precision).
...
0-VALUE GLOCAL t0
LET SQRT(1/3): GLOCAL ti1
LET SQRT(1/3): GLOCAL ti2
...
LET t0=6*ti1*2^DOUBLE[I]:
Can you use global VALUEs (or even VARIABLEs) within LET?LET ti1 = (SQRT(ti1*ti1+1)-1)/ti1:>
LET ti2 = ti2/(SQRT(ti2*ti2+1)+1):
Thank you! Yes, something like that.
>
If I understand correctly, the intelligence is within LET
which decides which operator matches the type of the operands.
Les messages affichés proviennent d'usenet.