Namespaces, using (Part 1)

preview_player
Показать описание
We make enums create their own namespaces, then make 'using' pull values from those namespaces.

The 'using' implementation is incomplete but it is pretty straightforward to finish it from where we leave off here.
Рекомендации по теме
Комментарии
Автор

break from 47:18 to 50:40 and 1:08:25 to 1:12:15 :)

syoxsk
Автор

That's such a simple idea to have enums in their own namespace, so you don't have to prefix them with PICKUP_TYPE_UNINITIALIZED you can just type UNINITIALIZED, but makes reading the code so much nicer.

gettem
Автор

20:50 "... because .. bjarne stroustrup doesn't know what's important" BAHAHAHA

Electrictronic
Автор

Will the compiler support recursive #run  directives? For example, will someone be able to define a function to generate #run  directives to generate other #run  directives?

i.donthaveanameanymore
Автор

having followed Rust (how long its taking to stabilise) I'd worry about another new language but...
maybe if - like Go - he just has inbuilt slices & some sort of map; and adds dedicated "float4" support much like shading languages - then it could handle a big enough set of what we need whilst being a lot simpler. Something its easy to lose sight of in C++ land: the efficient types have simple hardware representations (SIMD registers, simple advancing through contiguous arrays).  Think of all the effort that goes into abstracting collections which you then want to compile to something simple again.

walterbz
Автор

3:30 We don't see, cause it's off the bottom...

SuperIdiotMan
Автор

"Because we're in tedium land, we need to add this to the header file... The more that I start working on my own language, the less that I start trying to keep my c++ header files neat, because I just have contempt for them. They're stupid and they're a waste of my time." How is it that we ended up in 2014 with two compiled languages? C is older than I am and C++ is a barely usable, clunky dog. Every language I've used besides them has been better, but none of them compile to machine code. When did we, as an industry, collectively decide that we either use interpreted code or crap?

swoogan
Автор

I really want to know why he use Emac instead sublimetext or codeblock. I've talked about this with a linux programer and he prefers to use Vim and still that is a mysterius for me....

NitrosS
Автор

I'm still trying to figure out, after all this talk of bad tools, why you're using subversion.

swoogan
Автор

#run  directives might actually end up being a security risk .. imagine that compiling some code can install a virus on your machine :-/

if enums are just namespaces with const values, why not support enum strings ?

TheLogicalError
Автор

its been a while since i have last programmed in c++ but what is this -> :=

kille