Re: TeX and Pascal [was Re: The joy of FORTRAN]

Liste des GroupesRevenir à col misc 
Sujet : Re: TeX and Pascal [was Re: The joy of FORTRAN]
De : lars (at) *nospam* beagle-ears.com (Lars Poulsen)
Groupes : alt.folklore.computers comp.os.linux.misc
Date : 29. Sep 2024, 17:08:21
Autres entêtes
Organisation : AfarCommunications Inc
Message-ID : <vdbu1m$1q55n$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Mozilla Thunderbird
On 29/09/2024 06:55, Lars Poulsen wrote:
On 29/09/2024 00:06, Lawrence D'Oliveiro wrote:
All OO languages are in fact procedural.
The opposite of “procedural” is “functional”, not “OO”.
 I need to do some reading. My understanding of the difference is clouded by the fact that a subroutine is a procedure, but becomes a function if it delivers a return value. (Yes I am that old).
 
So what syntax *do* you want to use to join strings?
 S3 = string_join(S1, S2) .. or .. S3 = S1.S2 .. or even S1 .= S2
.. although the latter probably is hiding some ugly copying and reallocation behind the scenes.
 On Sun, 29 Sep 2024 07:50:14 +0100, The Natural Philosopher wrote:
I found that out in JavaScript where a comparison between a string  "1"
and a number 1 failed on IE but worked on Firefox.
 
That’s a misfeature of JavaScript, not a fault of OO generally. For
example, Python doesn’t have that misfeature. And neither does C++, while
we’re at it
 Yeah, I like PERL a whole lot better than JavaScript. PERL has different operators for string compare and numeric compare. So if $S1 is "1" and $I1 is the number 1, you can test $I1 == $S1 (which casts the numeric string into a number) or $I1 eq $S1 (which casts the string into a number).
Of course I meant to type "which casts the number into a string".

If $S1 = " 1", the numeric compare is true, but the string compare fails.

Date Sujet#  Auteur
29 Sep 24 * Re: TeX and Pascal [was Re: The joy of FORTRAN]72186282@ud0s4.net
29 Sep 24 +* Re: TeX and Pascal [was Re: The joy of FORTRAN]70The Natural Philosopher
29 Sep 24 i+* Re: TeX and Pascal [was Re: The joy of FORTRAN]68Lawrence D'Oliveiro
29 Sep 24 ii+* Re: TeX and Pascal [was Re: The joy of FORTRAN]6Lars Poulsen
29 Sep 24 iii+- Re: TeX and Pascal [was Re: The joy of FORTRAN]1Lars Poulsen
30 Sep 24 iii`* Re: Procedural, Functional, String [was Re: The joy of FORTRAN]4Lawrence D'Oliveiro
30 Sep 24 iii `* Re: Procedural, Functional, String [was Re: The joy of FORTRAN]3Lars Poulsen
30 Sep 24 iii  +- Re: Procedural, Functional, String [was Re: The joy of FORTRAN]1Peter Dean
30 Sep 24 iii  `- Re: Procedural, Functional, String [was Re: The joy of FORTRAN]1Dennis Boone
29 Sep 24 ii+* Re: TeX and Pascal [was Re: The joy of FORTRAN]30rbowman
30 Sep 24 iii`* Re: TeX and Pascal [was Re: The joy of FORTRAN]29Lawrence D'Oliveiro
30 Sep 24 iii `* Re: TeX and Pascal [was Re: The joy of FORTRAN]28Pancho
30 Sep 24 iii  `* Re: TeX and Pascal [was Re: The joy of FORTRAN]27Lawrence D'Oliveiro
1 Oct 24 iii   +- Re: TeX and Pascal [was Re: The joy of FORTRAN]1Lawrence D'Oliveiro
1 Oct 24 iii   `* Re: TeX and Pascal [was Re: The joy of FORTRAN]25Pancho
1 Oct 24 iii    +* Re: TeX and Pascal [was Re: The joy of FORTRAN]20The Natural Philosopher
1 Oct 24 iii    i+* Re: TeX and Pascal [was Re: The joy of FORTRAN]8Lawrence D'Oliveiro
3 Oct 24 iii    ii+* Re: TeX and Pascal [was Re: The joy of FORTRAN]3rbowman
3 Oct 24 iii    iii`* C operator precedence rules2Stefan Ram
3 Oct 24 iii    iii `- Re: C operator precedence rules1Lawrence D'Oliveiro
4 Oct 24 iii    ii`* Re: TeX and Pascal [was Re: The joy of FORTRAN]4Peter Flass
4 Oct 24 iii    ii `* Re: TeX and Pascal [was Re: The joy of FORTRAN]3Bob Eager
4 Oct 24 iii    ii  `* Re: TeX and Pascal [was Re: The joy of FORTRAN]2The Natural Philosopher
4 Oct 24 iii    ii   `- Re: TeX and Pascal [was Re: The joy of FORTRAN]1Lawrence D'Oliveiro
1 Oct 24 iii    i+- Re: TeX and Pascal [was Re: The joy of FORTRAN]1Lawrence D'Oliveiro
1 Oct 24 iii    i+* Re: TeX and Pascal [was Re: The joy of FORTRAN]6Peter Flass
2 Oct 24 iii    ii+- Re: TeX and Pascal [was Re: The joy of FORTRAN]1The Natural Philosopher
2 Oct 24 iii    ii`* Re: TeX and Pascal [was Re: The joy of FORTRAN]4The Natural Philosopher
2 Oct 24 iii    ii `* Re: TeX and Pascal [was Re: The joy of FORTRAN]3Rich Alderson
3 Oct 24 iii    ii  +- Re: TeX and Pascal [was Re: The joy of FORTRAN]1The Natural Philosopher
3 Oct 24 iii    ii  `- Re: TeX and Pascal [was Re: The joy of FORTRAN]1Stefan Ram
2 Oct 24 iii    i+* Re: TeX and Pascal [was Re: The joy of FORTRAN]3The Natural Philosopher
3 Oct 24 iii    ii`* Re: TeX and Pascal [was Re: The joy of FORTRAN]2Peter Flass
3 Oct 24 iii    ii `- Re: Recursion [was Re: The joy of FORTRAN]1Lawrence D'Oliveiro
3 Oct 24 iii    i`- Re: TeX and Pascal [was Re: The joy of FORTRAN]1Pancho
1 Oct 24 iii    `* Re: Multiple Inheritance [was Re: The joy of FORTRAN]4Lawrence D'Oliveiro
3 Oct 24 iii     `* Re: Multiple Inheritance [was Re: The joy of FORTRAN]3Pancho
3 Oct 24 iii      `* Re: Multiple Inheritance [was Re: The joy of FORTRAN]2Lawrence D'Oliveiro
4 Oct 24 iii       `- Re: Multiple Inheritance [was Re: The joy of FORTRAN]1rbowman
30 Sep 24 ii`* Re: TeX and Pascal [was Re: The joy of FORTRAN]31John Ames
30 Sep 24 ii +* Re: TeX and Pascal [was Re: The joy of FORTRAN]27Stefan Ram
30 Sep 24 ii i`* Re: TeX and Pascal [was Re: The joy of FORTRAN]26John Ames
30 Sep 24 ii i +* Re: TeX and Pascal [was Re: The joy of FORTRAN]22Stefan Ram
1 Oct 24 ii i i+* Re: TeX and Pascal [was Re: The joy of FORTRAN]20John Ames
1 Oct 24 ii i ii+* Re: TeX and Pascal [was Re: The joy of FORTRAN]3Stefan Ram
1 Oct 24 ii i iii+- Re: TeX and Pascal [was Re: The joy of FORTRAN]1John Ames
3 Oct 24 ii i iii`- Re: TeX and Pascal [was Re: The joy of FORTRAN]1Waldek Hebisch
1 Oct 24 ii i ii`* Re: TeX and Pascal [was Re: The joy of FORTRAN]16The Natural Philosopher
1 Oct 24 ii i ii +* Re: TeX and Pascal [was Re: The joy of FORTRAN]2John Ames
1 Oct 24 ii i ii i`- Re: TeX and Pascal [was Re: The joy of FORTRAN]1The Natural Philosopher
1 Oct 24 ii i ii `* Re: TeX and Pascal [was Re: The joy of FORTRAN]13Lawrence D'Oliveiro
1 Oct 24 ii i ii  `* Re: TeX and Pascal [was Re: The joy of FORTRAN]12John Ames
1 Oct 24 ii i ii   `* Re: TeX and Pascal [was Re: The joy of FORTRAN]11Lawrence D'Oliveiro
2 Oct 24 ii i ii    `* Re: TeX and Pascal [was Re: The joy of FORTRAN]10John Ames
2 Oct 24 ii i ii     `* Re: TeX and Pascal [was Re: The joy of FORTRAN]9Lawrence D'Oliveiro
23 Oct 24 ii i ii      `* Re: TeX and Pascal [was Re: The joy of FORTRAN]8186282@ud0s4.net
23 Oct 24 ii i ii       `* Re: TeX and Pascal [was Re: The joy of FORTRAN]7John Ames
23 Oct 24 ii i ii        `* Re: The Joy Of Object-Orientation6Lawrence D'Oliveiro
23 Oct 24 ii i ii         +- Re: The Joy Of Object-Orientation1John Ames
24 Oct 24 ii i ii         `* Re: The Joy Of Object-Orientation4186282@ud0s4.net
24 Oct 24 ii i ii          `* Re: The Joy Of Object-Orientation3186282@ud0s4.net
24 Oct 24 ii i ii           `* Re: The Joy Of Object-Orientation2The Natural Philosopher
25 Oct 24 ii i ii            `- Re: The Joy Of Object-Orientation1186282@ud0s4.net
1 Oct 24 ii i i`- Re: TeX and Pascal [was Re: The joy of FORTRAN]1Mike Spencer
30 Sep 24 ii i `* Re: TeX and Pascal [was Re: The joy of FORTRAN]3Lawrence D'Oliveiro
30 Sep 24 ii i  `* Re: TeX and Pascal [was Re: The joy of FORTRAN]2John Ames
1 Oct 24 ii i   `- Re: TeX and Pascal [was Re: The joy of FORTRAN]1Lawrence D'Oliveiro
1 Oct 24 ii `* Re: TeX and Pascal [was Re: The joy of FORTRAN]3rbowman
1 Oct 24 ii  +- Re: TeX and Pascal [was Re: The joy of FORTRAN]1Lawrence D'Oliveiro
1 Oct 24 ii  `- Re: TeX and Pascal [was Re: The joy of FORTRAN]1John Ames
30 Sep 24 i`- Re: TeX and Pascal [was Re: The joy of FORTRAN]1Pancho
30 Sep 24 `- Re: TeX and Pascal [was Re: The joy of FORTRAN]1moi

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal