473,569 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

type identifier and OO design

I know that everything related to OO is off topic here, but...

I am designing a framework which allows to do OO in pure C, called COS
(stands for 'C Object System' inspired by CLOS and Objective-C) and it
will be mainly addressed to C users (publicly available) with idioms as
close as possible to those of C. One thing which is highly subjective is
identifiers' names, and one of the most used identifier is the type
identifier of objects.

Objective-C uses 'id' as a generic object type. I find this identifier
too short and pretty common, and since COS is fully written in C (it is
not another language), it could collide with a lot of existing libraries
headers. Since the OO code is growing significantly, it's time for me to
fix this type identifier.

Up to know I am using 'obj' and I am happy with it, but I am not sure
that it will be accepted widely. Here is a list of some alternatives I
was thinking about (open):

obj // actually, used
OBJ // not so bad alternative
object // too common, may collide a lot.
Object // not possible, already used by class Object.

I would like something short since the type is very common in COS, think
about something like 'my', 'var', 'let' in some scripting languages. And
I don't want the trailing _t to mention that it's a type (like FILE).

What would be your preference (justification would be a must)?

To avoid newsgroup pollution, I would recommend private answers.

Thanks,

a+, ld.
Oct 30 '06 #1
0 1300

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2790
by: linkspeed | last post by:
Hi, I tried following element definition in MSXML 4.0 <xsd:element name="Identifier"> <xsd:simpleType> <xsd:restriction base="xsd:token"> <xsd:pattern value=".*"/> </xsd:restriction> </xsd:simpleType> </xsd:element> It can validate XML text like: <Identifier>abbbb</Identifier>
3
2917
by: onsbomma | last post by:
Can anyone tell me the difference between typedef struct chunkinfo* mfastbinptr; and typedef struct chunkinfoptr chunkinfoptr;
31
2579
by: CeZaR | last post by:
Hi, How can i specify the return type of a function returning a managed array of chars. If i try to write: "char __gc func()" i get an error! How can i do that? Thanks!
3
2468
by: IR | last post by:
Hi, I've been trying to do the following (which doesn't compile) : template<class T, class F = Example<T struct Example { F foo(); };
3
5083
by: jacob navia | last post by:
Abstract: Continuing the discussion about abstract data types, in this discussion group, a string collection data type is presented, patterned after the collection in C# and similar languages (Java). It stores character strings, and resizes itself to accommodate new strings when needed. Interface: ----------
5
6981
by: aaragon | last post by:
Hello, I was wondering if it is possible to forward declare a type definition. If so, what is the way to do it? I found a couple of messages where they say it's not possible but there must be a way to do it. Thank you. a²
5
1269
by: Rain | last post by:
Is there a way for an object to know the identifier which has called it MyClass myClassObjectId = new MyClass(); how can I get the name of the identifier "myClassObjectId" which is calling the object from within the object itself. ?? public string IdName { get{ return ?????? } }
4
1420
by: Joe Strout | last post by:
I'm just re-learning Python after nearly a decade away. I've learned a good healthy paranoia about my code in that time, and so one thing I'd like to add to my Python habits is a way to both (a) make intended types clear to the human reader of the code, in a uniform manner; and (b) catch any type errors as early and automatically as possible....
2
1605
by: Fraser Ross | last post by:
class A{}; void func() { sizeof ( A (A()) ); sizeof ( ( A (A()) ) ); sizeof ( A ((A())) ); } The first operand is a type-id of a function. It doesn't compile with Comeau which is fine.
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7968
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.