On 2016-05-13 20:41, Jamal wrote:
Or is it just D-like to define everything inside the class/struct body?
Yes, the D-way is to define everything directly inside the class/struct.
--
/Jacob Carlborg
On Friday, May 13, 2016 18:41:16 Jamal via Digitalmars-d-learn wrote:
> Warning D newb here.
>
> Is it possible to define a member function outside of the
> class/struct like in C++;
>
> class x { body
> void foo(int* i);
> };
>
> void x::foo(int* i){
> *i++;
> }
>
> Or is it just D-like
On Monday, 7 March 2016 at 21:56:11 UTC, Seb wrote:
Use ld.gold - it will speed up your linking quite dramatically!
https://code.dawg.eu/reducing-vibed-turnaround-time-part-1-faster-linking.html
Thanks, it improves things a little. However I've just had idea
that it should be possible to impl
Here's the code that doesn't compile:
import std.stdio, std.experimental.ndslice, std.range,
std.algorithm;
void main()
{
auto alloslice = [1, 2, 3, 4].sliced(1,4);
auto sandwich = chain(alloslice,
(0).repeat(8).sliced(2,4),
alloslice);
w
On Monday, 7 March 2016 at 09:18:37 UTC, ciechowoj wrote:
I'm using `dub` to build project. And every time I run `dub` it
seems to check if dependencies are up to date, which takes some
time. Is there a way to switch of that checking? Or any other
way to speed up building process? It really slo
I take callbacks on occasion, and I don't really care if they're
a delegate, or a function, or a callable object, and I can assert
that in a template:
void foo(Callable)(Callable callback) if(isSomeFunction!Callable
|| isCallable!Callable) {
...
}
That works, but it doesn't show you what ar
On Sunday, 15 May 2016 at 01:59:15 UTC, cy wrote:
I take callbacks on occasion, and I don't really care if
they're a delegate, or a function, or a callable object, and I
can assert that in a template:
void foo(Callable)(Callable callback)
if(isSomeFunction!Callable || isCallable!Callable) {
On Saturday, 14 May 2016 at 21:59:48 UTC, Stiff wrote:
Here's the code that doesn't compile:
import std.stdio, std.experimental.ndslice, std.range,
std.algorithm;
void main()
{
auto alloslice = [1, 2, 3, 4].sliced(1,4);
auto sandwich = chain(alloslice,
(0).repe
On Sat, 2016-05-14 at 16:36 +, ciechowoj via Digitalmars-d-learn
wrote:
> On Monday, 7 March 2016 at 21:56:11 UTC, Seb wrote:
> >
> > Use ld.gold - it will speed up your linking quite dramatically!
> >
> > https://code.dawg.eu/reducing-vibed-turnaround-time-part-1-faster-l
> > inking.html
> T