Solved

Strongly Typed Language

Posted on 1997-12-29
2
590 Views
Last Modified: 2013-11-20
MFCer,

What is Strongly Typed Language ? Is C++ a Strongly Typed Language ?

Andrew
0
Comment
Question by:andrewyu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Expert Comment

by:galkin
ID: 1313160
What do you mean typed language?
0
 
LVL 5

Accepted Solution

by:
yonat earned 10 total points
ID: 1313161
A type is the set of messages that an object understands. In C++ it means all its public member functions, including inherited ones.

A typed language is a language that support types :-) Many languages only support types weakly, like Perl, or good-old Basic.

C++ let's you define your own types (using classes). It protects you from sending a message (function call) to an object that can't understand it. This check is done at compile time, or statically. Therefore, C++ is a statically typed language.

In SmallTalk, this checking is done at run-time. Therefore SmallTalk is a dynamically typed language.

About strong typing:

The better you can define the messages that an object can receive - the stronger the typing. For example, in Eiffel you can define pre- and post-conditions for each message. So Eiffel's typing is stronger than that of C++. But C++'s typing is stronger that that of, say, Visual Basic.

So "strong" is a bit like "tall" - it's relative. Most people out of eiffel.com would say that C++ is strongly typed.

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unix / Linux grid computing 5 172
viewing source code from eclipse 13 111
difference between String.subString() and String.subSequence() 6 290
canBalance challenge 34 111
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question