On 04/18/2017 06:40 PM, Meta wrote:
> On Wednesday, 19 April 2017 at 00:22:14 UTC, Mike B Johnson wrote:
>> On Tuesday, 18 April 2017 at 23:49:35 UTC, ketmar wrote:
>>> Mike B Johnson wrote:
>>>
How can I get the return type of the current method without
specifying the name or any comple
On Tuesday, 18 April 2017 at 13:48:57 UTC, Stanislav Blinov wrote:
There's a much more concise workaround, both in code written
and generated ;)
import std.stdio;
template func(string file = __FILE__, int line = __LINE__)
{
auto func(T...)(auto ref T args)
{
writeln("called fun
On Monday, 17 April 2017 at 14:23:50 UTC, Jonathan M Davis wrote:
On Monday, April 17, 2017 13:45:18 Dmitry via
Digitalmars-d-learn wrote:
[...]
Every time there's a new template instantiation, it's
essentially copy-pasting the entire template. So, if you have
the templated function
[...]
On Wednesday, 19 April 2017 at 00:22:14 UTC, Mike B Johnson wrote:
On Tuesday, 18 April 2017 at 23:49:35 UTC, ketmar wrote:
Mike B Johnson wrote:
How can I get the return type of the current method without
specifying the name or any complexity? Similar to
typeof(this).
typeof(return)
Than
On Tuesday, 18 April 2017 at 23:49:35 UTC, ketmar wrote:
Mike B Johnson wrote:
How can I get the return type of the current method without
specifying the name or any complexity? Similar to typeof(this).
typeof(return)
Thanks, sweet and simple!
Mike B Johnson wrote:
How can I get the return type of the current method without specifying
the name or any complexity? Similar to typeof(this).
typeof(return)
How can I get the return type of the current method without
specifying the name or any complexity? Similar to typeof(this).
On Tuesday, April 18, 2017 19:54:26 Mike B Johnson via Digitalmars-d-learn
wrote:
> can this be updated to work?
>
> https://wiki.dlang.org/Timing_Code
Wow, that's using some old stuff - stuff older than the wiki. Weird. It was
probably ported from somewhere.
The best thing to use now is core.ti
can this be updated to work?
https://wiki.dlang.org/Timing_Code
On Tuesday, 18 April 2017 at 17:58:32 UTC, WhatMeWorry wrote:
On Tuesday, 18 April 2017 at 15:15:47 UTC, Stanislav Blinov
wrote:
On Tuesday, 18 April 2017 at 15:07:27 UTC, WhatMeWorry wrote:
When I try to upload these files to my new repo, GitHub
(rightfully so) complains that
I have too many
On Tuesday, 18 April 2017 at 15:15:47 UTC, Stanislav Blinov wrote:
On Tuesday, 18 April 2017 at 15:07:27 UTC, WhatMeWorry wrote:
When I try to upload these files to my new repo, GitHub
(rightfully so) complains that
I have too many files. Since I'm using sdl and not json, can I
safely delete a
On Tuesday, 18 April 2017 at 15:07:27 UTC, WhatMeWorry wrote:
When I try to upload these files to my new repo, GitHub
(rightfully so) complains that
I have too many files. Since I'm using sdl and not json, can I
safely delete all the files
that pertain to json? Can I do this some way at the co
Just some basic questions regarding Dub projects with GitHub. I'm
just getting
my toes wet with GitHub so these might be pretty naive questions.
I've got about 35 mini dub projects where each project holds an
OpenGL tutorial.
like so:
01_01_hello_window
.dub
build
app
On Tuesday, 18 April 2017 at 14:15:59 UTC, Stanislav Blinov wrote:
On Tuesday, 18 April 2017 at 14:09:28 UTC, Stanislav Blinov
wrote:
foreach(row; result)
{
arr ~= row.toStruct(cargpspoint);
}
Sorry, this should be
foreach(row; result)
{
row.toStruct(
On Tuesday, 18 April 2017 at 13:48:57 UTC, Stanislav Blinov wrote:
On Tuesday, 18 April 2017 at 13:28:06 UTC, Solomon E wrote:
I tried to produce an example of calling a function with
variadic template arguments using special tokens __FILE__ and
__LINE__.
This compiles and runs, producing th
On Tuesday, 18 April 2017 at 14:09:28 UTC, Stanislav Blinov wrote:
foreach(row; result)
{
arr ~= row.toStruct(cargpspoint);
}
Sorry, this should be
foreach(row; result)
{
row.toStruct(cargpspoint);
arr ~= cargpspoint;
}
On Tuesday, 18 April 2017 at 13:28:57 UTC, Suliman wrote:
Also I can't understand why app take so much memory? I checked
array of structures size with this code:
auto mymem = cargpspoints.length *
typeof(cargpspoints[0]).sizeof;
writeln(mymem);
And it's print: 16963440
it's about 16MB...
On Tuesday, 18 April 2017 at 13:28:06 UTC, Solomon E wrote:
I tried to produce an example of calling a function with
variadic template arguments using special tokens __FILE__ and
__LINE__.
This compiles and runs, producing the output shown, using the
default gdc
provided by Ubuntu 17.04. Thi
Also I can't understand why app take so much memory? I checked
array of structures size with this code:
auto mymem = cargpspoints.length *
typeof(cargpspoints[0]).sizeof;
writeln(mymem);
And it's print: 16963440
it's about 16MB...
What is takes all other memory?
On Tuesday, 18 April 2017 at 10:13:09 UTC, Jonathan M Davis wrote:
On Monday, April 17, 2017 07:23:50 Jonathan M Davis via
Digitalmars-d-learn wrote:
So, if you're okay with explicitly instantiating your variadic
function template instead of having the types inferred, then
it can work, but othe
On Monday, 17 June 2013 at 22:38:47 UTC, Timothee Cour wrote:
inside std.process it says:
// Pids are only meant to be constructed inside this module, so
we make the
constructor private.
However, this makes a number of useful functions from
std.process useless
unless the processes were created
I am writing app that extract data from DB to array of structures.
void getSingleTrackInfo()
{
foreach(item; getTablesGPSSensorList)
{
ResultRange result = mysqlconnection.query(sqlquery);
On Monday, April 17, 2017 07:23:50 Jonathan M Davis via Digitalmars-d-learn
wrote:
> So, if you're okay with explicitly instantiating your variadic function
> template instead of having the types inferred, then it can work, but
> otherwise, no. Making it work would require a language enhancement
On Tuesday, 18 April 2017 at 09:05:10 UTC, Andrea Fontana wrote:
On Tuesday, 18 April 2017 at 00:48:05 UTC, Jethro wrote:
How to combine the need to localize a result for an if
statement and have to call a method to get proper comparison:
[...]
which should simplify to
if ((auto x = foo()).val
On Tuesday, 18 April 2017 at 00:48:05 UTC, Jethro wrote:
How to combine the need to localize a result for an if
statement and have to call a method to get proper comparison:
[...]
which should simplify to
if ((auto x = foo()).valid())
{
}
but this code does not work.
[...]
for(auto x = foo
On Mon, 2017-04-17 at 15:10 -0700, Ali Çehreli via Digitalmars-d-learn
wrote:
> alias RangeType = typeof(return);
> return new RangeType(() {});
It appears the answer to my question is:
return typeof(return)();
Thanks to Ali and T for setting on the right path.
--
Russel.
===
On Mon, 2017-04-17 at 22:56 +, Atila Neves via Digitalmars-d-learn
wrote:
>
[…]
> https://github.com/russel/ApproxGC/pull/2
>
> Unfortunately the auto generated integration test main file
> doesn't quite work (feel free to file a bug on unit-threaded) so
> in that PR I disabled auto-generat
27 matches
Mail list logo