Jeremie Pelletier wrote:
Andrei Alexandrescu wrote:
Chris Nicholson-Sauls wrote:
downs wrote:
Here is a funny consequence of this amusing fact:
if you overload opAssign in a struct with lazy T[] dgs..., you can
achieve the following syntax
WithFlag(GL_BLEND, true) =
Did you know the following code compiles?
module test;
import std.stdio;
void Assert(bool cond, string delegate()[] dgs...) {
debug if (!cond) {
string str;
foreach (dg; dgs) str ~= dg();
throw new Exception(str);
}
}
void main() {
Assert(false, O hai thar! );
}
downs wrote:
Did you know the following code compiles?
module test;
import std.stdio;
void Assert(bool cond, string delegate()[] dgs...) {
debug if (!cond) {
string str;
foreach (dg; dgs) str ~= dg();
throw new Exception(str);
}
}
void main() {
Assert(false, O hai thar! );
Andrei Alexandrescu wrote:
downs wrote:
Did you know the following code compiles?
module test;
import std.stdio;
void Assert(bool cond, string delegate()[] dgs...) {
debug if (!cond) {
string str;
foreach (dg; dgs) str ~= dg();
throw new Exception(str);
}
}
void main() {
On Tue, 13 Oct 2009 15:06:25 +0200, downs default_357-l...@yahoo.de
wrote:
Did you know the following code compiles?
module test;
import std.stdio;
void Assert(bool cond, string delegate()[] dgs...) {
debug if (!cond) {
string str;
foreach (dg; dgs) str ~= dg();
throw new
Max Samukha wrote:
On Tue, 13 Oct 2009 15:06:25 +0200, downs default_357-l...@yahoo.de
wrote:
Did you know the following code compiles?
module test;
import std.stdio;
void Assert(bool cond, string delegate()[] dgs...) {
debug if (!cond) {
string str;
foreach (dg; dgs) str ~=
downs wrote:
Did you know the following code compiles?
module test;
import std.stdio;
void Assert(bool cond, string delegate()[] dgs...) {
debug if (!cond) {
string str;
foreach (dg; dgs) str ~= dg();
throw new Exception(str);
}
}
void main() {
Assert(false, O
Andrei Alexandrescu, el 13 de octubre a las 10:30 me escribiste:
downs wrote:
Did you know the following code compiles?
module test;
import std.stdio;
void Assert(bool cond, string delegate()[] dgs...) {
debug if (!cond) {
string str;
foreach (dg; dgs) str ~= dg();
Leandro Lucarella wrote:
Andrei Alexandrescu, el 13 de octubre a las 10:30 me escribiste:
downs wrote:
Did you know the following code compiles?
module test;
import std.stdio;
void Assert(bool cond, string delegate()[] dgs...) {
debug if (!cond) {
string str;
foreach (dg; dgs) str
downs wrote:
Here is a funny consequence of this amusing fact:
if you overload opAssign in a struct with lazy T[] dgs..., you can achieve the
following syntax
WithFlag(GL_BLEND, true) = WithDepthMask(false) = tex.With = Quads = {
foreach (i, q; qa) {
float f = 1f*i /
Chris Nicholson-Sauls wrote:
downs wrote:
Here is a funny consequence of this amusing fact:
if you overload opAssign in a struct with lazy T[] dgs..., you can
achieve the following syntax
WithFlag(GL_BLEND, true) = WithDepthMask(false) = tex.With =
Quads = {
foreach (i, q; qa)
Jeremie Pelletier wrote:
Leandro Lucarella wrote:
Andrei Alexandrescu, el 13 de octubre a las 10:30 me escribiste:
downs wrote:
Did you know the following code compiles?
module test;
import std.stdio;
void Assert(bool cond, string delegate()[] dgs...) {
debug if (!cond) {
string str;
Andrei Alexandrescu wrote:
Jeremie Pelletier wrote:
Leandro Lucarella wrote:
Andrei Alexandrescu, el 13 de octubre a las 10:30 me escribiste:
downs wrote:
Did you know the following code compiles?
module test;
import std.stdio;
void Assert(bool cond, string delegate()[] dgs...) {
debug
Chris Nicholson-Sauls wrote:
downs wrote:
Here is a funny consequence of this amusing fact:
if you overload opAssign in a struct with lazy T[] dgs..., you can
achieve the following syntax
WithFlag(GL_BLEND, true) = WithDepthMask(false) = tex.With =
Quads = {
foreach (i, q; qa)
Andrei Alexandrescu wrote:
Chris Nicholson-Sauls wrote:
downs wrote:
Here is a funny consequence of this amusing fact:
if you overload opAssign in a struct with lazy T[] dgs..., you can
achieve the following syntax
WithFlag(GL_BLEND, true) = WithDepthMask(false) = tex.With =
Quads =
On Tue, 13 Oct 2009 16:39:13 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
As far as lazy goes, I think the lazy variadic functions are a
compelling feature that renders lazy unnecessary.
Do you mean lazy in the way that lazy variadic functions *imply* lazy via
typing
16 matches
Mail list logo