12.12.2012 Views

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>C++</strong>Builder Extensions to <strong>C++</strong><br />

compile your code. If, however, you want to use the RAD aspect of<br />

<strong>C++</strong>Builder, you will have to accept the extensions <strong>C++</strong>Builder makes<br />

to <strong>C++</strong>. In the long run I’m confident you will f<strong>in</strong>d the extensions<br />

someth<strong>in</strong>g you can easily live with.<br />

Language Extensions: The Great Debate<br />

Back <strong>in</strong> 1994 or so <strong>Borland</strong> began work<strong>in</strong>g on a RAD tool that they codenamed Delphi. Once<br />

it was decided that the component model architecture was the best way to implement RAD,<br />

it was then necessary to settle on the programm<strong>in</strong>g language that would be the heart of the<br />

system. At that time <strong>Borland</strong> was the only compiler vendor mass market<strong>in</strong>g a Pascal compiler.<br />

They were known as the company that produced the best Pascal tools. If you were a Pascal<br />

programmer, you probably used <strong>Borland</strong>’s TurboPascal <strong>in</strong> one flavor or another. <strong>Borland</strong><br />

more or less “owned” Pascal. While <strong>Borland</strong> didn’t own the Pascal language <strong>in</strong> a legal sense,<br />

they no doubt felt that because of their position <strong>in</strong> the Pascal world, they could take<br />

considerable liberties <strong>in</strong> implement<strong>in</strong>g new language features and enhancements. In addition,<br />

there was no Pascal standards committee to deal with. So <strong>Borland</strong> created Delphi.<br />

Before Delphi came <strong>in</strong>to be<strong>in</strong>g, <strong>Borland</strong> had already been modify<strong>in</strong>g the Pascal language <strong>in</strong><br />

positive ways. For <strong>in</strong>stance, <strong>Borland</strong> had already extended Pascal by creat<strong>in</strong>g a new language<br />

called ObjectPascal. It could be said that ObjectPascal is to Pascal what <strong>C++</strong> is to C.<br />

ObjectPascal added classes to Pascal, thereby hurl<strong>in</strong>g Pascal <strong>in</strong>to the world of object-oriented<br />

programm<strong>in</strong>g languages. When Delphi came along, it was easy enough to add new keywords<br />

and new language behavior to deal with the component model. Keywords such as published<br />

and property were added, as were others. This allowed <strong>Borland</strong> to fully implement the power<br />

of the component model. By modify<strong>in</strong>g the Pascal language to suit the component model,<br />

<strong>Borland</strong> was able to do RAD right. In essence, the ObjectPascal language was modified as<br />

needed when design issues came up dur<strong>in</strong>g the development of the then-unknown product<br />

called Delphi. The result is a language that works seamlessly with the PME model (the<br />

component model).<br />

While modify<strong>in</strong>g Pascal could be considered a bold step for <strong>Borland</strong>, it was not without<br />

precedent. Previously Microsoft had taken the BASIC language and modified it to produce<br />

a new language called Visual Basic. This new language was nearly unrecognizable when<br />

compared to the BASIC language that served as its base. While it could be said that Microsoft<br />

took a risk <strong>in</strong> modify<strong>in</strong>g BASIC to create Visual Basic, Microsoft is after all Microsoft, and<br />

they could afford to take the risk. The BASIC language was not be<strong>in</strong>g used to any great degree<br />

and so there was little or no hue and cry when Microsoft came out with Visual Basic (there<br />

was hue and cry, but it was not of the negative type). <strong>Borland</strong> took more of a risk <strong>in</strong> modify<strong>in</strong>g<br />

489<br />

<strong>14</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!