🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #1289

Re: Programs from other countries.

#1289
From: Andrej Brodnik (Andy)
Date: Wed, 13 Jun 1990 15:03
53 lines
2628 bytes
In article <4896@druco.ATT.COM> connors@druco.ATT.COM (ConnorsPA) writes:
>
>	What do programs look like in other languages?
>	Are the keywords still in English, with the comments
>	in the native language? Or does everything look different?
>

Hi, 

my mother's tongue is Slovene and from my experience I have to say that
programmes written by Slovenes are more or less a kind of mixture of English
reserved words (begin, end, ...), and Slovene comments and names of variables
or procedures etc. For example let me write a short programme in English and
in Slovene:

  PROGRAM Something;
  VAR counter: integer; 
  BEGIN
    FOR counter:= 0 TO 10 DO WriteLn ('Hi there!');
  END;  (* Something *)

  PROGRAM Nekaj;
  VAR stevec: integer; 
  BEGIN
    FOR stevec:= 0 TO 10 DO WriteLn ('@ivijo !');
  END;  (* Nekaj *)

Here you can note one problem. In Slovene alphabet we have some letters which
do not exist in English one. Therefore, according to ISO standard, we use
ASCII codes of "^[@~{`" for them (and they appear on our terminals/printers in
                                                                   v  
their Slovene shape). For example "@" would appear something like "Z" (only
its height is the same as any other's letter. 

But in common compilers these characters are reserved for special purpose
opeartors and therefore they can not appear in variables/procedures names. In
                                    v
fact "stevec" should be written as "stevec", but in strings to be printed out
you can freely use the Slovene characters. 

To conclude, the programmes have English reserved words, Slovene
variable/procedure names (not completley written in Slovene alphabet) and
completley Slovene strings.

I hope that this answeres your question, but if you have any further questions
do not hesitate to ask. I can tell you even how the programmes look like
written using a Russian alphabet. For all "not-Cyrilic" people they could be
realy strange, but more or less everything depends and is defined through the
definition of Ord(char) function. 

Regards

Andrej
Technical Details
Message-ID: <1990Jun13.150306.20946@watdragon.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!sdd.hp.com!ucsd!usc!elroy.jpl.nasa.gov!ames!pacbell.com!pacbell!att!watmath!maytag!watdragon!abrodnik
References: <4896@druco.ATT.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!sdd.hp.com!ucsd!usc!elroy.jpl.nasa.gov!ames!pacbell.com!pacbell!att!watmath!maytag!watdragon!abrodnik
From: abrodnik@watdragon.waterloo.edu (Andrej Brodnik (Andy))
Newsgroups: comp.lang.misc
Subject: Re: Programs from other countries.
Message-ID: <1990Jun13.150306.20946@watdragon.waterloo.edu>
Date: 13 Jun 90 15:03:06 GMT
References: <4896@druco.ATT.COM>
Distribution: comp
Organization: University of Waterloo
Lines: 53