Jump to content
Wikipedia The Free Encyclopedia

Talk:Pascal (programming language)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is the talk page for discussing improvements to the Pascal (programming language) article.
This is not a forum for general discussion of the subject of the article.
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL
Archives : 1, 2 Auto-archiving period: 3 months
Former featured article candidate Pascal (programming language) is a former featured article candidate. Please view the links under Article milestones below to see why the nomination was archived. For older candidates, please check the archive.
Article milestones
DateProcessResult
March 1, 2008 Featured article candidate Not promoted
This level-5 vital article is rated C-class on Wikipedia's content assessment scale.
It is of interest to the following WikiProjects:
WikiProject icon Computing : Software / CompSci Mid‐importance
WikiProject icon This article is within the scope of WikiProject Computing , a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.ComputingWikipedia:WikiProject ComputingTemplate:WikiProject ComputingComputing
Mid This article has been rated as Mid-importance on the project's importance scale.
Taskforce icon
This article is supported by WikiProject Software (assessed as Mid-importance).
Taskforce icon
This article is supported by WikiProject Computer science (assessed as Low-importance).
Things you can help WikiProject Computer science with:
‹ The template below (Annual readership ) is being considered for deletion. See templates for discussion to help reach a consensus. ›

A root article

[edit ]

I wanted to make explicit here, that this is a root article pertaining to original Pascal as designed by Niklaus Wirth. Thus the many dialects of Pascal are branched off as separate articles, which I think is proper, and has been the rule here for decades (and I appreciate that greatly). Please make sure that any modifications to it pertain to and are compatible with the original language Niklaus Wirth.

The standard for the language, ISO 7185, has been derided as a later version of the language. The basis for this claim (loosely) was the fact that many dialects branched from the language before the standard was issued in about 1983. I (personally) respect that opinion, but I would note that there is little net difference between the original (J&W) version of Pascal and ISO 7185, and, indeed, the examples on this page work under both versions of the language.

Thank you.

Scott Franco San Jose, CA. — Preceding unsigned comment added by Samiam95124 (talkcontribs) 23:57, 12 July 2023 (UTC) [reply ]

wrong, but understandable variant record example

[edit ]

The following example is understandable, but wrong:

TYPE
TSystemTime=record
Year,Month,DayOfWeek,Day:word;
Hour,Minute,Second,MilliSecond:word;
end;
TPerson=RECORD
FirstName,Lastname:String;
Birthdate:TSystemTime;
CaseisPregnant:Booleanof
true:(DateDue:TSystemTime);
false:(isPlanningPregnancy:Boolean);
END;

Person's sex is omitted, but pregnancy status is required even for men. Only women can be pregnant, is this a women record? also END for RECORD is missing. The following code is the union of male and female records, also female records have two variants for pregnant and not pregnant women:

TYPE
TSex=(male,female);
TSystemTime=record
Year,Month,DayOfWeek,Day:word;
Hour,Minute,Second,MilliSecond:word;
end;
TPerson=Record
FirstName,Lastname:String;
Birthdate:TSystemTime;
CaseSex:TSexof
female:CaseisPregnant:Booleanof
true:(DateDue:TSystemTime);
false:(isPlanningPregnancy:Boolean);
End{isPregnant Case};
male:(hasVasectomy:Boolean);
End{Sex Case};
End{Record};

I did not change the example because I don't have a Pascal compiler to try it and many years have passed since the last time I wrote a program in Pascal. I am not sure it has a correct syntax. The second an maybe more important reason is because it is more complex than the original one. Another option is to rewrite the original example as follows:

TYPE
TSystemTime=Record
Year,Month,DayOfWeek,Day:word;
Hour,Minute,Second,MilliSecond:word;
end;
TWoman=Record
FirstName,Lastname:String;
Birthdate:TSystemTime;
CaseisPregnant:Booleanof
true:(DateDue:TSystemTime);
false:(isPlanningPregnancy:Boolean);
End{isPregnant case};
End{TWoman Record};

Whichever option is taken, this example comes from another article, it should be changed in that page too. Of course not necessary identical each according to what is explained. — Preceding unsigned comment added by 2806:106E:B:400F:F9:F69F:2ED7:3753 (talk) 05:50, 4 September 2022 (UTC) [reply ]

I've updated with a simpler, less potentially controversial, example. Chris Burrows (talk) 23:41, 6 September 2022 (UTC) [reply ]
Just my opinion, but this is not the place to have off topic discussions about if men can or cannot get pregnant. Can we stick if the examples are or are not valid Pascal? Samiam95124 (talk) 23:31, 12 July 2023 (UTC) [reply ]

BSD Pascal?

[edit ]

mention BSD Pascal or UICU Pascal ? 3MRB1 (talk) 21:12, 7 January 2024 (UTC) [reply ]

Probably should, but I don't know anything about them.Bubba73 You talkin' to me? 23:10, 7 January 2024 (UTC) [reply ]
@Bubba73
Thanks.Bubba73 You talkin' to me? 04:07, 9 January 2024 (UTC) [reply ]
@Bubba73

Microsoft Pascal

[edit ]

Microsoft Pascal and Microsoft QuickPascal not mentioned. (There is mention of way way later VisualPascal) 81.6.34.169 (talk) 05:30, 23 March 2025 (UTC) [reply ]

Should be in there. I put in a sentence at the end of a section. There was another one (or two) for IBM PCs at the time, but I can't remember the maker. Bubba73 You talkin' to me? 05:48, 23 March 2025 (UTC) [reply ]

AltStyle によって変換されたページ (->オリジナル) /