do you say 'char star' or 'character pointer'

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
User avatar
KungFooMasta
OGRE Contributor
OGRE Contributor
Posts: 2087
Joined: Thu Mar 03, 2005 7:11 am
Location: WA, USA
x 16
Contact:

Post by KungFooMasta »

"char star" is easy to remember, doesn't matter if its the correct term or not, people will know what you're talking about.
Creator of QuickGUI!
User avatar
JohnJ
OGRE Expert User
OGRE Expert User
Posts: 975
Joined: Thu Aug 04, 2005 4:14 am
Location: Santa Clara, California
x 4

Post by JohnJ »

What I use depends on the context: If I'm reading code out loud, I say "char star". If I'm explaining a concept, I say "character pointer" or "byte pointer", depending on which makes the most sense. For example, I might say "this variable is a byte pointer to the locked pixel buffer" for a "char*", or I might say "this variable is a character pointer to the next character being read from the file".

Edit: Also, how do you pronounce "char"? I simply say "char" with a "ch+arr", but I've actually heard it pronounced "care" (kay+err), since that's the way the first part of "character" ("care-akter") is pronounced.
User avatar
BRAINLESS
Goblin
Posts: 282
Joined: Tue Jan 04, 2005 6:56 pm
Location: The Netherlands

Post by BRAINLESS »

Definitely char(acter) pointer over char(acter) star. If someone said char star over the phone to me I'd be wondering what the hell they were talking about, but then I'm dutch and I don't do C/C++ professionally (unfortunately).
Proud member of the OpenFRAG Game Development community
User avatar
johnhpus
Platinum Sponsor
Platinum Sponsor
Posts: 1186
Joined: Sat Apr 17, 2004 2:49 am
x 3

Post by johnhpus »

I read "char" as "care", but my complaint about "char star" was specifically about people who say "char" as in charred wood.
User avatar
Jabberwocky
OGRE Moderator
OGRE Moderator
Posts: 2819
Joined: Mon Mar 05, 2007 11:17 pm
Location: Canada
x 220
Contact:

Post by Jabberwocky »

Most of the people I've worked with say "char" as in charred wood. I've always said "care", but co-workers thought that was weird.

It's kinda like coding styles - there are a lot of programmers in the world, and there's inevitably going to be some different "dialects". I don't view any as wrong or right, and mostly just think it's quirky and funny when dealing with some lingo you're not familiar with.
Image
User avatar
Klaim
Old One
Posts: 2565
Joined: Sun Sep 11, 2005 1:04 am
Location: Paris, France
x 56
Contact:

Post by Klaim »

I say byte.













But people don't follow me :evil:
Gregor386
Gnoblar
Posts: 11
Joined: Fri Sep 19, 2008 6:01 pm

Post by Gregor386 »

char pointer.

In Slovenia, we always refer to it as "kazalec", a pointer, never star.

BTW I've tried translating "kazalec" with google translate, so if anyone wants to try from english to slovenian it works great, via versa it gets another meaning.
I was wondering what to write about here, and than I saw the tiny little text on some page. Now I'm telling the world how awesome I am AND that I really like cookies.
Post Reply