On Wednesday, 15 March 2017 at 08:54:59 UTC, Paolo Invernizzi
wrote:
I'm curious: ddb does not support yet arbitrary precision
numbers [1], does dpq support them?
Does Dlang supports them?
As Alex Parrill says, on problem was in const member. But this is
one of the problems, and after fix here still was an error.
But alphaglosined found another problem! For some unknown reason
here it is need to specify an empty postblit constructor.
Full patch:
https://github.com/denizzzka/r
On Sunday, 17 April 2016 at 06:42:39 UTC, denizzzka wrote:
Tried to build small test app - is not reproduced.
Also tried to reduce source:
https://github.com/denizzzka/r-tree/tree/314f7f1cc1b6387915dc56dcb2d3ccbc63e19275/source
In this source line 199 causes this error
(https://github.com
Tried to build small test app - is not reproduced.
On Saturday, 16 April 2016 at 15:15:18 UTC, Alex Parrill wrote:
Try removing the const from this line:
debug private const bool isLeafNode = false;
I suspect that D is disabling whole-structure assignment since
allowing it would mean that the constant `isLeafNode` could be
changed.
Tried
On Saturday, 16 April 2016 at 11:48:56 UTC, denizzzka wrote:
source/package.d(109,31): Error: function
rtree.RAMNode!(Box!(int, 2), ubyte).RAMNode.opAssign is not
callable because it is annotated with @disable
source/package.d(110,26): Error: function
rtree.RAMNode!(Box!(int, 2), ubyte
Hi!
DMD and LDC2 complain about disabled opAssign, but I am not used
@disable and depend package "gfm" also isn't uses @disable.
Steps to reproduce:
git clone https://github.com/denizzzka/r-tree.git
cd r-tree
git checkout 803eed22
dub test
Fetching gfm 6.0.0 (getting select
On Monday, 27 July 2015 at 20:12:10 UTC, John Colvin wrote:
Yes, but then core.sync.semaphore doesn't support being shared,
so...
I don't really understand how
https://github.com/D-Programming-Language/druntime/blob/master/src/core/sync/semaphore.d#L356 is managing to avoid this
Since
Hi!
I have a code with segfault. I decided to try to take advantage
with dub dustmite:
$ dub dustmite ~/ssd/pgator_dustmite0 --program-status=139 --
--config=my_pgator.conf --debug=true
WARNING: A deprecated branch based version specification is used
for the dependency vibe-d-postgresql.
On Thursday, 1 November 2012 at 18:25:22 UTC, Lubos Pintes wrote:
Hi,
Some time ago I reported on D.Anounce, that Vibe apps are not
working on my system, they failed with an exception. So I
diagnosed a bit and found the following:
There is a folder on my system
For example, adding 3 strings to type tuple t:
foreach( i; 0..2 )
alias TypeTuple!( t, string ) t; // this is wrong code
and result should be:
TypeTuple!( string, string, string );
Great! Thanks!
Hi!
How to convert D's string to big endian?
How to convert to D's string from big endian?
On Monday, 29 October 2012 at 15:22:39 UTC, Adam D. Ruppe wrote:
UTF-8 isn't affected by endianness.
Ok, thanks!
On Monday, 29 October 2012 at 15:46:43 UTC, Jordi Sayol wrote:
Al 29/10/12 16:17, En/na denizzzka ha escrit:
Hi!
How to convert D's string to big endian?
How to convert to D's string from big endian?
UTF-8 is always big emdian.
Yes.
(I thought that the problem in this place
On Monday, 29 October 2012 at 15:46:43 UTC, Jordi Sayol wrote:
Al 29/10/12 16:17, En/na denizzzka ha escrit:
Hi!
How to convert D's string to big endian?
How to convert to D's string from big endian?
UTF-8 is always big emdian.
oops, what?
Q: Is the UTF-8 encoding scheme the same
immutable ubyte[] valueBin = cast(immutable(ubyte[]))
toStringz(s); // s is string type
Error: e2ir: cannot cast toStringz(s) of type immutable(char)* to
type immutable(ubyte[])
On Monday, 29 October 2012 at 17:51:56 UTC, bearophile wrote:
denizzzka:
immutable ubyte[] valueBin = cast(immutable(ubyte[]))
toStringz(s); // s is string type
Error: e2ir: cannot cast toStringz(s) of type immutable(char)*
to type immutable(ubyte[])
One way to do it:
import std.stdio
On Monday, 29 October 2012 at 18:50:58 UTC, bearophile wrote:
denizzzka:
I am trying to send to remote host utf8 text with zero byte at
end (required by protocol)
What if your UTF8 string coming from D already contains several
zeros?
Incredible situation because it is text-based protocol
Something like execv() but with stdin/stdout?
On Tuesday, 23 October 2012 at 11:34:35 UTC, denizzzka wrote:
Something like execv() but with stdin/stdout?
Something like popen(), not execv().
On Tuesday, 23 October 2012 at 12:19:08 UTC, Adam D. Ruppe wrote:
On Tuesday, 23 October 2012 at 11:34:35 UTC, denizzzka wrote:
Something like execv() but with stdin/stdout?
If you're on linux i have a little file that might help:
http://arsdnet.net/dcode/exec.d
int exec(
string program
How I can synchronize changing of array in the functions with
nothrow? Handmade spinlock or something better?
void main()
{
struct S { int payload; }
S* s = new shared (S); // Why this is a illegal?
}
Error: cannot implicitly convert expression (new shared(S)) of
type shared(S)* to S*
On Monday, 15 October 2012 at 15:27:03 UTC, thedeemon wrote:
On Monday, 15 October 2012 at 15:15:57 UTC, denizzzka wrote:
S* s = new shared (S); // Why this is a illegal?
Error: cannot implicitly convert expression (new shared(S)) of
type shared(S)* to S*
Because shared(S) and S
Thanks!
On Friday, 12 October 2012 at 23:30:39 UTC, Sean Kelly wrote:
I would be grateful if someone share singly linked list based
on cas()
There's a sample Stack and SList implementation in the
concurrency chapter:
http://www.informit.com/articles/printerfriendly.aspx?p=1609144
Of course, I
Not that the titanic but the authors, probably, have used Java
and another type of cas result returns.
or dynamic array with this methods
Thanks for answer!
After investigation came to the conclusion that here is needed
not synchronized-based solution. I am need compare-and-swap
single linked list because it will be used in callback proc from
C, and it cannot be throwable, but synchronized contains
throwable _d_monitorenter
I would be grateful if someone share singly linked list based
on cas()
Ok, this is a good opportunity to learn how to write such by
oneself :-)
It is up to 131072 digits before the decimal point; up to 16383
digits after the decimal point.
On Sunday, 7 October 2012 at 01:20:49 UTC, Jonathan M Davis wrote:
On Saturday, October 06, 2012 23:49:23 denizzzka wrote:
I am on dmd 2.060
debug {} else {} was not obvious for me - I thought that debug
is
a kind of qualifer.
I wouldn't expect you to try either version(debug) or debug
I am have struct with constructor:
immutable struct Cell {
...
}
And I trying to create instance of this struct:
immutable (Cell)* s = new Cell( v, s);
compiler returns error:
Error: cannot implicitly convert expression (new Cell(v,s)) of
type Cell* to immutable(Cell)*
How to pass
I should just create immutable constructor :-)
Why
version(assert){ int i = 1; } else { int k = 1; }
causes error:
Error: identifier or integer expected, not assert
?
This is bug or feature?
http://dlang.org/version.html says what it is correct code,
because assert in the list of Predefined Version Identifiers
How I can solve this
huh, text should be from upper letter: Assert, Debug
On Saturday, 6 October 2012 at 19:16:26 UTC, Jonathan M Davis
wrote:
On Saturday, October 06, 2012 20:42:01 Alex Rønne Petersen
wrote:
version (assert) is a very recent addition to the compiler and
is not in
2.060.
Which would probably explain why it's not working for him,
since presumably,
On Saturday, 6 October 2012 at 12:35:05 UTC, Minas wrote:
Is there a library that I can use to connect to an SQL Server
database? (I need to use it on both linux and windows).
I am write one for PostgreSQL right now:
https://github.com/denizzzka/dpq2
On Saturday, 6 October 2012 at 22:08:48 UTC, denizzzka wrote:
On Saturday, 6 October 2012 at 12:35:05 UTC, Minas wrote:
Is there a library that I can use to connect to an SQL Server
database? (I need to use it on both linux and windows).
I am write one for PostgreSQL right now:
Ops
Hi!
I am make a yet another attempt to create an interface to
PostgreSQL from the D: https://github.com/denizzzka/dpq2
I can not understand how do I compile it into a library and
create .di headers file. Currently, make debug uses dmd -lib
and creates libpq.di file, but its file contains
(sorry for my English)
Hi!
I am make a yet another attempt to create an interface to
PostgreSQL from the D: https://github.com/denizzzka/dpq2
I can not understand how do a compile it into a library and
create .di headers file. Currently, make debug uses dmd -lib
and creates libpq.di file
I tried to add:
export { /* module code except imports*/}
but nothing has changed.
solved!
problem was in -Hf compiler switch
44 matches
Mail list logo