Parametr pthread_create - dotaz na C++ckare

Stanislav Meduna stanom na etm.co.at
Úterý Březen 9 14:04:51 CET 1999


Ales Pour <A.Pour na sh.cvut.cz> schrieb in Nachricht
  <36E50A1E.5615A61A na sh.cvut.cz>...

> To je norma/standard, ze staticky metody maji
> volaci konvenci jako C funkce? Ziju v presvedceni
> prave ze ne...

Hm. Pozrel som do "The annotated C++ reference manual"
od Stroustrupa. Na tuto temu som nenasiel nic, okrem:

===
class process {
  static int no_of_processes;
public:
  static void reschedule();
};

...
The type of static member does not involve its
class name; thus the type of process::no_of_processes
is int and the type of &process::reschedule is
void (*)().
===

Viem, ze to hovori trochu o niecom inom, ale
pokial je typ adresy tej funkcie void (*)(), mohlo
by to podla mna znamenat, ze ju na taku mozem
bezpecne castovat.

Zdravi
-- 
					Stano



Další informace o konferenci Linux