|
You are here |
shafik.github.io | ||
| | | | |
qsantos.fr
|
|
| | | | | This article will quickly explain the Rust types [T; N], &[T; N], &[T], Vec, &Vec with C code, and what the str, &str, String, OsString and CString add. Arrays and Slices Rust C [T; N] (array)Example: [i32; 100]Allocated on the stack T[N]Example: int[100]Allocated on the stack &[T; N] (array reference)Example: &[i32; 100]N is tracked at ... Continue reading Rust Strings for C Programmers ? | |
| | | | |
ventspace.wordpress.com
|
|
| | | | | Something that comes up occasionally for me is that I'd like to write a template function that accepts a lambda, and then peels back the layers of the lambda to get type information about it. For example, I'd like to have a templated type parameter for the return value of that lambda to be able... | |
| | | | |
gcher.com
|
|
| | | | | Recently I got interested in the new Apple language Swift, that will probably replace objective-c as the language of choice for native iOS and OSX applications. There are many things I like in Swift, and also other things I don't like. But one thing that I really enjoy is the support for lambdas, specially compared to the way it works in C++. Why do I think the lambdas in swift are better? | |
| | | | |
cppstories.com
|
|
| | | Recently, I've found somethinginterestingin Visual Studio that improved my Logger! I had a function called AddMsg /** appends message to the log file */ void AddMsg(LOG_MODE m, int level, char* strModule, char *strMsg, ...); But, when you wanted to add a comment you needed to use quite complicated and long syntnax, like: | ||