July 21 Learn » Re: Using FFI to write a std::string to a buffer passed in from D | |||
|---|---|---|---|
| |||
...and valid `std::string` objects. Without emplacement new, `b` is not a valid `std::string... | |||
July 21 Learn » Using FFI to write a std::string to a buffer passed in from D | |||
|---|---|---|---|
| |||
...again";
*(std::string*)(b) = s;// Segfault here
}
void display(void* b) {
std::string s = *(std... | |||
July 21 Learn » Re: Tuple deconstruction in Phobos | |||
|---|---|---|---|
| |||
...a sequence does. I should really PR `std.typecons` to add a couple of examples... | |||
July 21 DIP Development » Re: third draft: add bitfields to D | |||
|---|---|---|---|
| |||
...all their problems? See https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3096... | |||
July 20 General » D Profiles Idea | |||
|---|---|---|---|
| |||
...introduce features for them. You can build std like a pyramid, with a system profile... | |||
July 20 General » executable libary pattern `Error: only one entry point `main` is allowed` | |||
|---|---|---|---|
| |||
...version=localmain
void foobar(int i){
import std;
i.writeln;
}
version(localmain){
void main(){
foobar... | |||
July 20 Learn » Re: Tuple deconstruction in Phobos | |||
|---|---|---|---|
| |||
...tie` assignment, you can just do: ```d import std.meta; AliasSeq!(y, x) = tupRetFn().expand; ``` | |||
July 20 Issues » [Issue 23487] std.experimental.logger assigning FileLogger to sharedLog no longer works | |||
|---|---|---|---|
| |||
...this issue: - Update documentation. Fix Bugzilla 23487 - std.experimental.logger assigning FileLogger to sharedLog no... | |||
July 20 Learn » Tuple deconstruction in Phobos | |||
|---|---|---|---|
| |||
...T[ind] = i; } } //Usage example: import std.stdio, std.typecons; auto tupRetFn() => tuple(47, "test... | |||
July 20 DIP Ideas » Re: Final type qualifier | |||
|---|---|---|---|
| |||
...but with immutable it can be.
```
import std.stdio;
public void main()
{
immutable(char[]) world... | |||
Copyright © 1999-2021 by the D Language Foundation