Hi all!
How do I generate documentation for struct members using ddoc?
I don't understand if there is a way to generate documentation
for all the members without putting a '///' over every member
On 14/12/2017 3:16 AM, n00nb wrote:
Hi all!
How do I generate documentation for struct members using ddoc?
I don't understand if there is a way to generate documentation for all
the members without putting a '///' over every member
There isn't.
On Wednesday, 13 December 2017 at 18:24:09 UTC, Thomas wrote:
Or is there a better solution for tracing the error position
from root till the branch ?
Speaking of tracing exceptions, here's my favourite one .. so far
;-)
(I mean come on.. debugging is great fun!)
btw. If you compile/run
On 12/13/2017 11:39 AM, Unazed Spectaculum wrote:
> ubyte[] receiveBytes(T)(T socket, size_t receiveCount)
> {
> ubyte[] buffer = new ubyte[receiveCount];
> size_t count = socket.receive(buffer);
Don't trust code you find on newsgroups. :o) You have to check the
returned value first.
On Wednesday, 13 December 2017 at 21:38:49 UTC, Satoshi wrote:
What means this error and how to solve it?
object.d-mixin-1072(1112): Error: Global variable type does not
match previous declaration with same mangled name:
_D10TypeInfo_m6__initZ
Actually, I'm working on OS with minimal D
What means this error and how to solve it?
object.d-mixin-1072(1112): Error: Global variable type does not
match previous declaration with same mangled name:
_D10TypeInfo_m6__initZ
Actually, I'm working on OS with minimal D runtime and I'm unable
to compile object.d
source code:
I'm on Linux 64 bit, all SDL libraries (-dev versions) are
installed, dub is set up with:
"dependencies": {
"derelict-sdl2": "~>3.0.0-beta"
},
"subConfigurations": {
"derelict-sdl2": "derelict-sdl2-static"
},
"libs":
["sdl2"]
All the SDL core library functions
On Wednesday, 13 December 2017 at 00:43:31 UTC, rikki cattermole
wrote:
1. Does dub compile dependencies as separate binaries? And if
yes how to specify where should be they placed?
Object/static files, but yes.
Where they go:
Windows: %APPDATA%/roaming/dub
Posix: ~/.dub
You don't need to
On Wednesday, 13 December 2017 at 18:24:09 UTC, Thomas wrote:
So my question is: Is there a way to catch that line where the
exception has happened without a catch ?
Yes: use a debugger.
On Wednesday, December 13, 2017 18:24:09 Thomas via Digitalmars-d-learn
wrote:
> Hi forks!
>
> I wanted to ask if there is a way to catch the line position on
> an exception without setting a try + catch block ?
> What I want is something like this:
>
>
> module main;
>
> import std.stdio;
>
ubyte[] receiveBytes(T)(T socket, size_t receiveCount)
{
ubyte[] buffer = new ubyte[receiveCount];
size_t count = socket.receive(buffer);
return buffer[0 .. count];
}
string receiveAll(T)(T socket, size_t segmentSize = 1024)
{
ubyte[][] data;
size_t count
Hi forks!
I wanted to ask if there is a way to catch the line position on
an exception without setting a try + catch block ?
What I want is something like this:
module main;
import std.stdio;
import std.conv;
void foo()
{
scope(failure)
{
writeln("Got a
On Tuesday, 12 December 2017 at 19:00:01 UTC, Biotronic wrote:
On Tuesday, 12 December 2017 at 15:19:35 UTC, Vino wrote:
import std.algorithm: filter, map, sort;
import std.container.array;
import std.file: SpanMode, dirEntries, isDir ;
import std.stdio: writefln;
import std.typecons: Tuple,
On Wednesday, 13 December 2017 at 15:58:40 UTC, Vino wrote:
On Wednesday, 13 December 2017 at 15:16:50 UTC, Vino wrote:
Hi All,
Request your help, on how to sort a tuple container array, I
have raised the same topic in one of the other thread "Tuple
Array Sorting" and was addressed to use
On Wednesday, 13 December 2017 at 17:16:46 UTC, Vino wrote:
On Wednesday, 13 December 2017 at 08:32:34 UTC, codephantom
wrote:
[...]
Hi All,
[...]
Hi All, Thank you very much , was able to resolve the issue by
changing the writefln line as below.
Sorted[].sort!((a,b) =>
On Wednesday, 13 December 2017 at 08:32:34 UTC, codephantom wrote:
On Wednesday, 13 December 2017 at 07:35:40 UTC, Jonathan M
Davis wrote:
In general, you probably want to cast the SysTime to a
DateTime if you're going to do something like that.
yes, I would agree ;-)
Of course the intention
On Wednesday, 13 December 2017 at 15:17:59 UTC, Jacob Carlborg
wrote:
I forgot to mention that there have been several discussions
around adding support for reference counted classes. Several of
the mentioning interfacing with Objective-C is important/a
requirement.
Ok, good to know!
I have
On Wednesday, 13 December 2017 at 15:16:50 UTC, Vino wrote:
Hi All,
Request your help, on how to sort a tuple container array, I
have raised the same topic in one of the other thread "Tuple
Array Sorting" and was addressed to use standard array rather
than container array, and i am not able
On 2017-12-13 16:07, Jacob Carlborg wrote:
On 2017-12-13 13:18, mrphobby wrote:
Would it be possible to somehow hook this up automatically to the D
destructor perhaps? Interested in hearing your thoughts on this!
As far as I know, the destructor is only called (automatically by the
GC).
Hi All,
Request your help, on how to sort a tuple container array, I
have raised the same topic in one of the other thread "Tuple
Array Sorting" and was addressed to use standard array rather
than container array, and i am not able to find any document or
example in the library for the
On 2017-12-13 13:18, mrphobby wrote:
I have been taking a look at your example. Looks pretty neat! Some
advanced mixin stuff there that looks pretty useful.
They're pretty basic ;)
However, as far as
I can tell there is no handling of retain/release.
No, that's correct.
How would you
On Thursday, 23 November 2017 at 17:28:43 UTC, Jacob Carlborg
wrote:
I have a simple example [2] of an application that shows a
window with a WebKit view, i.e. and embedded browser. This
works with the upstream DMD and LDC compilers. It basically
only contains bindings for what I needed for
On Tuesday, 12 December 2017 at 17:32:15 UTC, Frank Like wrote:
Hi,everyone,
who can help me,about the "AssocArray to string is ok,but how
to get the AssocArray from string? ".
For example:
SysTime[][string] AATimes;
AATimes["a1"] =[SysTime(DateTime(2017, 1, 1, 12, 33,
On Wednesday, 13 December 2017 at 07:37:17 UTC, Jonathan M Davis
wrote:
On Wednesday, December 13, 2017 06:55:46 bauss via
Digitalmars-d-learn wrote:
[...]
If it works, it's a bug related to code lowering (since scope
statements are always lowered to try-catch-finally blocks).
You're not
On Wednesday, 13 December 2017 at 07:35:40 UTC, Jonathan M Davis
wrote:
In general, you probably want to cast the SysTime to a DateTime
if you're going to do something like that.
yes, I would agree ;-)
Of course the intention was not really to just format it the same
way as Clock.currTime()
25 matches
Mail list logo