Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
You would know all of Fortran IV if you knew some 40 (just guessing) key words or "reserved" words like CONTINUE, DO, END, COMMON, EQUIVALENT, SIN, INTEGER, SUBROUTINE, etc. Does someone know this number more accurately? (Later, these words were no longer reserved.)

Does someone know the number of such key words or reserved words in VB.net? It has at least 35 modifiers for just subroutines. There might be probably 500+ keywords. This makes it nearly impossible for anyone to know all of VB.net unlike Fortran IV or 77.

What I have tried:

Searched on Internet. Lots of talk about there being no reserved words in Fortran. In other words you could write a statement like
SUBROUTINE = CONTINUE*SQRT(DO, COS) - END/REAL

That is not very interesting to me. I am trying to find out the number of such key words in Fortran and VB.net.
Posted
Updated 25-Aug-21 19:48pm

Keywords - Visual Basic | Microsoft Docs[^]

FORTRAN 77 doesn't have any reserved words, but that doesn't mean using any keywords is a good idea.
 
Share this answer
 
Comments
VBeginner.NET 26-Aug-21 0:38am    
Of course not, and I am not programming in Fortran these days. I am just trying to compare the number of key words.
Maciej Los 26-Aug-21 5:16am    
5ed!
Quote:
Of course not, and I am not programming in Fortran these days. I am just trying to compare the number of key words.

And Dave has given you the answer, or at least the means to get the answer.
Go to the link, and start counting. Then follow the links at the bottom and count those as well.
The you can compare them, which is simple
number you added up : zero
 
Share this answer
 
Comments
VBeginner.NET 26-Aug-21 2:11am    
That page seems to show 171 keywords. What about Fortran? Is there any similar page for Fortran?
OriginalGriff 26-Aug-21 2:24am    
How many times do you have to be told that Fortran has no reserved words?
If you mean the number of words that a fortran compile is expected to understand, then a trivial google would have found you this: http://fortranwiki.org/fortran/show/Keywords
But they aren't key words in the same way the VB ones are, they are not reserved in any way but "recognised by context".
Fortran is a very old language!
VBeginner.NET 26-Aug-21 4:02am    
I must have been quite sleepy. I even saw this in a Google search but did not go to that page. At that time, I probably did not know that keywords is what I needed, not reserved words. But got it now.

Thanks for the help.
OriginalGriff 26-Aug-21 4:41am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900