TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Sean Dennis
from: Bo Simonsen
date: 2004-05-06 17:24:42
subject: Merits

SD> Hello, Bo.

Hi Sean!

SD>  BS> Which shows Pascal is a teaching language. :))

SD> Or a poor Pascal programmer.

SD> Using a Repeat/Until loop, you can cause a loop to stop immediately.

Well that's not my point! My point is in pascal you can't do so many 
"bad tricks" like in C. Maybe they aren't all bad, I'm right now 
learning some delphi, what i'm missing is.

The for-loop in Pascal is limited, in C i can do

some_list_type* list, first;

...

for(list = first; list; list=list->next)
	...

The equals in pascal is

list, first: SomePointerType;

list := first;

while list  nil do
begin
	...
	list := list^.next;
end;

Loop control structures like Pascal wrote, am I missing too like:

for(;;) 
{
    if(something == 1)
	break;
    else if(something == 2)
	continue;
    /* more? */
}

You can say C can make it easier to shoot your self in the foot, but it 
can also limit your level of abstraction.

SD> Also, I don't know what school you went to, but over here, in college,
SD> they teach C++, not Pascal.  My last class in Pascal was in 1988, when
SD> I was in high school.

SD>  BS> Pascal says "Oh I need to teach him more".

SD> In this case, a lot more.

Not really I'm only programming pascal, because I need too, but 
programming language of choice is C.

Bo


--- AlphaEd/Linux 0.01
* Origin: The Night Express - Roennede, Dk (2:236/100.0)
SEEN-BY: 633/267 270
@PATH: 236/100 237/9 20/11 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.