December 06, 2017 Learn » Re: Does dmd not always compile all of the source code? | |||
|---|---|---|---|
| |||
...this: version(Windows) int i = 0; else foobarbaz; Should it fail to compile on Linux... | |||
May 16, 2016 Announce » unit-threaded v0.6.13 - tags, autotags and support for integration tests | |||
|---|---|---|---|
| |||
...explanatory:
with(immutable Sandbox()) {
writeFile("foo.txt", "foobarbaz\ntoto"); // can also pass string[] for lines... | |||
September 14, 2015 Learn » Re: chaining chain Result and underlying object of chain | |||
|---|---|---|---|
| |||
...main()
{
auto chain1 = chain("foo", "bar");
auto chain2 = chain(chain1, "baz");
assert(equal(chain2, "foobarbaz"));
}
---- | |||
September 12, 2015 General » Type helpers instead of UFCS | |||
|---|---|---|---|
| |||
...if 'Peter' types
---
void foo()
{
import myhelper;
"foobarbaz".
}
---
after the dot, 'Peter' can get ".writeln... | |||
July 26, 2013 Learn » Re: mixin string to template - advice needed | |||
|---|---|---|---|
| |||
...toUpper(c);
}
return result;
}
unittest
{
assert(underscorish("fooBarBaz") == "FOO_BAR_BAZ");
}
/* Testing the whole thing... | |||
January 20, 2009 General » Re: Can we get rid of opApply? | |||
|---|---|---|---|
| |||
...instantiation can be. alias Foo!(Bar, Baz) FooBarBaz; A partial instantiation can't be, but... | |||
March 18, 2008 General » Re: Baiting | |||
|---|---|---|---|
| |||
...I might have something like "Jarrett Billingsley #foobarbaz". When the server gets the post, it... | |||
October 28, 2004 General » Re: Enums can be annoyingly verbose... | |||
|---|---|---|---|
| |||
...that I resorted to:
//enum FooBarBaz : ushort
alias ushort FooBarBaz;
enum
{
THE = 0x0001,
QUICK = 0x0002... | |||
October 27, 2004 General » Re: Enums can be annoyingly verbose... | |||
|---|---|---|---|
| |||
...FooBarBaz y = FooBarBaz.THE // ok
}
{
import FooBarBaz; // bring names in FooBarBaz in current scope
FooBarBaz... | |||
August 11, 2004 General » Re: Enums can be annoyingly verbose... | |||
|---|---|---|---|
| |||
But if the 'FooBarBaz' is omitted then the user does not know which enum to... | |||
Copyright © 1999-2021 by the D Language Foundation