October 25, 2008 Explicitly Instantiated Function Template won't work as Array Properties | ||||
|---|---|---|---|---|
| ||||
import std.algorithm; [0,1,2,3].reverse!(int[]); // fails [0,1,2,3].reverse; // works Please let me know the former expression fails due to the language limitation or not. thanks, | ||||
October 26, 2008 Re: Explicitly Instantiated Function Template won't work as Array Properties | ||||
|---|---|---|---|---|
| ||||
Posted in reply to HOSOKAWA Kenchi | On Sat, 25 Oct 2008 02:19:05 -0400, HOSOKAWA Kenchi wrote: > import std.algorithm; > [0,1,2,3].reverse!(int[]); // fails > [0,1,2,3].reverse; // works > > > Please let me know the former expression fails due to the language limitation or not. > > > thanks, http://www.digitalmars.com/d/2.0/phobos/std_algorithm.html#reverse reverse is no template. | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply