Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
судя по всему при посылке сообщения объекту, поиск соответствующего метода производится сравнением строковых сигнатур имени сообщения и имени метода в объекте. Как тут дела с быстродействием?Сравниваются не сами строки, а хеши. Но всё равно вызов через рантайм конечно медленнее, чем обычный вызов функции через указатель.
Originally however, the company name has deeper roots than simple psychological reference. When working at Softdisk, the team that later founded id Software took the name "Ideas from the Deep" (a company created by John Romero and Lane Roathe in 1989), attributing themselves as "IFD guys". Since the term "id" can be seen as a shortening of IFD to "ID", some argue that it can still be pronounced "eye-dee". The I was later made lowercase in the release of the second Commander Keen series, eventually followed by the D. Since Wolfenstein 3D used the "id" pronunciation together with the mixed-case "iD", many argue that the capitalization is purely a stylistic choice.
Проблема Delphi не в языке / среде / framework'e.
#include <iostream>
using std::cout;
using std::endl;
class foo
{
public:
virtual void virt_f()
{
cout << "foo::virt_f()" << endl;
}
void normal_f()
{
cout << "foo::normal_f()" << endl;
}
};
class bar: public foo
{
public:
virtual void virt_f()
{
cout << "bar::virt_f()" << endl;
}
void normal_f()
{
cout << "bar::normal_f()" << endl;
}
};
int main()
{
foo *f = new bar();
f->virt_f();
f->normal_f();
}
user@host$ g++ a.cc
user@host$ ./a.out
bar::virt_f()
foo::normal_f()
Создание программ для Mac OS X. Часть 1: вступление и Objective-C