Coming From /
BASICVariants
Difference (last change) (no other diffs, normal page display)
Changed: 52c52,60
] |
] == Related = * Languages vs. D * ![]() * ![]() * ![]() * Language Specification * Development with D |
Comparisons for programmers familiar with variants of BASIC
![]() |
|
Some Major Differences From BASIC
- Identifier names are case-sensitive. (MyVariable, MYVARIABLE, and myvariable are three different identifiers.)
- Keywords such as "if" and "for" are also case-sensitive. (The symbol "if" is a keyword, "IF" isn't a keyword.)
- All variables must be declared before use and assigned a specific type.
- Printing to the console window: printf is much trickier than PRINT (see HowTo/printf).
- All statements end with a semi-colon. Carriage returns and line feeds are ignored by the compiler (except within literal strings).
Guide for Finding the Right String Function
Add "import std.string;" to use these functions.
![]() |
|
Related
- Languages vs. D
D Transition Guide
Feature List
Rosetta Code: D category
- Language Specification
- Development with D