agodinhost

Rio de Janeiro, Brazil

drianoxaman.blogspot.com.br

Age: 43

I touched my first computer in 1986, one TK90X that my mom bought to me to play games. The games wasn't so good, then I started to write code in basic and Z80 assembler. After four years, in 90, I started to work on a video store close to my home “programming” in Clipper Summer 87 - at that time I didn’t had a clue of what it was but the owner decided to hire me even without previous experience. I stood coding in xbase (clipper, joinner, dbase and variants) for almost 4 years, then came C and Pascal 5.5 (where I learned my O.O. concepts). In 94 I started to work as self employee and passed by a bunch of companies doing more code (VB3-6, VC++, sybase, oracle 7.3), coordinating developers and doing analysis. In 2004 I started to code in java and since then I’m trying to keep working as system architect and to improve my team lead skills. I also did a lot of work that I forgot or that I don’t like to mention ...

I'm 42 years old, grumpy, married without pets nor children.

Feb
3
comment Is re-throwing an exception legal in a nested 'try'?
Yup, you are right. Ty.
Nov
23
awarded Caucus
Oct
26
answered Remote debugging using gnu DDD
Oct
8
awarded Informed
Oct
8
awarded Autobiographer
Oct
8
comment vs2013: static member does not link
Yup, I only saw that after VolAnd answer - I tought the singleton were complete but it was not - it was missing the function body. Thank you @deviantfan
Oct
8
awarded Scholar
Oct
8
comment vs2013: static member does not link
thank you man! Now it made sense and you were right, the singleton was incomplete - that's why the linker was complaining about a function call.
Oct
8
accepted vs2013: static member does not link
Oct
8
comment vs2013: static member does not link
I added some code into the VehState class methods but it didn't made any difference. I think that without this default code it would crash at run time but it would not affect the linker - I suppose.
Oct
8
comment vs2013: static member does not link
Good point, let me check.
Oct
8
comment vs2013: static member does not link
Me neither. The IdleState class, method engageGear, is using one similar construction - changeState(veh, &MovingState::theMovingState(). I dunno why the compiler is not complaining about this reference - and the others too. I'm really curios about what is happening here ...
Oct
8
comment vs2013: static member does not link
I think he is pointing the use of the singleton (simplest implementation, not thread safe). I saw this same singleton construction into his page (same link). Anyway the other references are being resolved by the linker without problems.
Oct
8
revised vs2013: static member does not link
added 2 characters in body
Oct
8
revised vs2013: static member does not link
added 97 characters in body
Oct
8
awarded Student
Oct
8
revised vs2013: static member does not link
added 2243 characters in body
Oct
8
revised vs2013: static member does not link
added 2243 characters in body
Oct
8
comment vs2013: static member does not link
I did updated the question. It initialize the state value - just that (AFAIK)
Oct
8
revised vs2013: static member does not link
added 72 characters in body
1 2 3 4