Article View: comp.lang.pascal.borland
Article #464Re: printing an array to screen
From: Osmo Ronkanen
Date: Sun, 13 Sep 1998 00:00
Date: Sun, 13 Sep 1998 00:00
45 lines
2536 bytes
2536 bytes
Why on earth did you E-mail to me without giving any warning. I just wasted my time in replying to this through E-mail and now I have to do it again. In the future either E-mail or post, do not do both. In article <35FBB053.E4968D1B@inode.at>, Michael Weber <mikew@inode.at> wrote: >Hi Osmo, > >> >I have one problem with the ' Odd ' , >> >I belive it to be 'non-standard' PASCAL - and that isn't legal for me to >> >use, >> >please tell me whether my assumption is correct . >> >> It is not non-standard. Also is there some rule that one can only use >> "standard" features? I do not see what is the point when one teaches not >> to utilize the tools fully. > > Yes there is a rule, because PASCAL was designed as a teaching language, >thats why we use it : the goal is that if we only use standard PASCAL, we >will have the ability to program in any other language, by just learning the >syntax. >If You only program in PASCAL, then thats another issue :-) > >so I will use : >IF input MOD 2 = 1 THEN element[n] := 1; >instead of : >IF ODD (input) THEN element[n] := 1; > If I was to evaluate the program, I'd penalize for that. ODD is perfectly standard Pascal. I'd also take one point away from using input as variable. The point is that TP is no superset of any standard Pascal. One cannot write standard Pascal programs that do anything useful in TP. Also standard Pascal in many aspects is completely unusable. (With standard I mean the original standard, not any extensions) For example any attempt to use any packed array of chars as strings in TP (and then of course counting that constants are as long as the definitions, as TP does not check that) is plain stupid. It is like using only fist gear on a car. That is neither productive nor educational. Osmo
Technical Details
Message-ID:
<6tgc6r$11@kruuna.Helsinki.FI>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35F95A97.FA83092A@inode.at> <35FA8796.9FD37034@inode.at> <6tg3kf$mav@kruuna.Helsinki.FI> <35FBB053.E4968D1B@inode.at>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111659,5e3ca8698b436352 X-Google-Attributes: gid111659,public X-Google-Thread: 108ebd,5e3ca8698b436352 X-Google-Attributes: gid108ebd,public X-Google-Thread: 10261c,5e3ca8698b436352 X-Google-Attributes: gid10261c,public From: ronkanen@cc.helsinki.fi (Osmo Ronkanen) Subject: Re: printing an array to screen Date: 1998/09/13 Message-ID: <6tgc6r$11@kruuna.Helsinki.FI> X-Deja-AN: 390669383 References: <35F95A97.FA83092A@inode.at> <35FA8796.9FD37034@inode.at> <6tg3kf$mav@kruuna.Helsinki.FI> <35FBB053.E4968D1B@inode.at> Organization: University of Helsinki Newsgroups: comp.lang.pascal.borland,comp.lang.pascal.misc,borland.public.turbopascal