Path: utzoo!utgpu!watmath!watdcsu!mgardi From: mgardi@watdcsu.waterloo.edu (M.Gardi - ICR) Newsgroups: comp.lang.c++ Subject: object data type Message-ID: <5382@watdcsu.waterloo.edu> Date: 28 Dec 88 14:34:49 GMT Distribution: comp Organization: U of Waterloo, Ontario Lines: 17 I should first mention that I am new to this newsgroup, and as such this question may have been asked already (or even worse, is a silly question). I am curious if anyone has a problem with the fact that c++ has a mixture of object data types, and standard C data types. I have just been looking at smaltalk and its philosophy of 'everything is an object'. The reason I am asking is that I am getting a little confused trying to visualize a really generic queue in C++. Say for instance that an object pointer is a pointer to an unsigned long. If the queue is then designed to work on objects defined thus, how does one work on datatypes such as integers, or doubles etc. Does one have to create a function that converts all defined datatypes to objects? I would really appreciate some comments on this...even if they are merely intended to clear up some misconceptions I may have... p.