![]() |
#1 |
Adept
Join Date: Jul 2007
Location: St George Utah, USA
Posts: 244
![]() |
p_ptr->class vs. p_ptr->pclass
So what was the push to switch pclass to class? 'class' is a reserved word in some environments (like Visual Studio).
pclass was still a useful word. We understood it to be player-class. I think that switch may have caused more harm than good. |
![]() |
![]() |
![]() |
#2 | |
Angband Devteam member
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 43
Posts: 1,517
![]() |
Quote:
Does this prevent you from building in VC++/VS? I think that BluBaron has been building recent staging in Angband in VS without hitting this problem. |
|
![]() |
![]() |
![]() |
#3 | |
Adept
Join Date: Apr 2011
Posts: 103
![]() |
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Prophet
Join Date: Dec 2009
Posts: 9,022
![]() |
It may also be that since it isn't a bare word it doesn't confuse the parser.
|
![]() |
![]() |
![]() |
#5 |
Veteran
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 1,027
![]() |
GTK uses "klass" instead of "class" to avoid conflicting with the C++ reserved word. This is funny to see, since "klass" sounds a lot like the typical KDE3 app name...
__________________
-- Dive fast, die young, leave a high-CHA corpse. |
![]() |
![]() |
![]() |
#6 |
Rookie
Join Date: Jun 2011
Posts: 21
![]() |
klass - may come from KDE Large Ass... ;-) - just kidding no want to start OS-War ;-)
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
new class? | Tibarius | Vanilla | 11 | July 18, 2011 18:53 |
New class? | Philip | Development | 9 | June 18, 2011 23:22 |
Question about p_ptr | Kyle | Development | 1 | July 27, 2009 23:30 |
p_ptr->command_cmd | PaulBlay | Development | 5 | April 22, 2009 04:24 |
This Class. Right here. | Larvitz | Vanilla | 1 | January 24, 2009 18:43 |