Thank you!
I need to ensure that range passed to function is SortedRange to use
binary search. I did something like:
static if(!__traits(compiles,
{
ElementType!(typeof(data)) element;
auto d = data.trisect(element);
}
)) assert(0, "DataRange shall be
06.08.2014 10:54, Dicebot пишет:
On Wednesday, 6 August 2014 at 06:50:59 UTC, Alexandr Druzhinin wrote:
This dlang.org/cpp_interface.html says I can do the following
// c++
namespace N {
void someCppFunction();
}
// d
extern (C++, N) void someCppFunction();
but this http://dpaste.dzfl.pl
This dlang.org/cpp_interface.html says I can do the following
// c++
namespace N {
void someCppFunction();
}
// d
extern (C++, N) void someCppFunction();
but this http://dpaste.dzfl.pl/e2242263e1dc says I can't
Is this feature implemented?
In D code I do
void* data = GC.malloc(...);
if(data is null)
...
In C code I do
void* data = malloc(...);
if(data == null)
...
What to do when in D code I have
void* data = std.c.stdlib.malloc(...);
if(data ?) // is null vs == 0
09.04.2014 15:19, bearophile пишет:
Alexandr Druzhinin:
I guess I should read how tepmlates work.
No templates are involved in this code.
Bye,
bearophile
I mean that nested struct Point2D has additional pointer to frame and
when compiler tries to instantiate template function 'twee
09.04.2014 14:13, bearophile пишет:
Reading about this "issue" is not good. What you can read about is how
unittests are implemented in D (as functions) and what's the difference
between static structs and nonstatic ones when they are defined inside a
function.
Bye,
bearophile
I guess I should r
09.04.2014 13:55, bearophile пишет:
And you need to use opEquals:
unittest {
static struct Point2D {
double x, y;
bool opEquals(const Point2D rhs) const {
return false;
}
}
auto p2d0 = Point2D(0, 0);
auto p2d1 = Point2D(1, 0);
a
09.04.2014 13:45, bearophile пишет:
Alexandr Druzhinin:
http://dpaste.dzfl.pl/f7364d416cb2
Error appeared when I defined opCmp and now I can't understand what's
the reason of the error. Why does tween need access to unittest?
Try to use "static struct" instead of a "
23.12.2013 23:50, DLang Beginner пишет:
On Monday, 23 December 2013 at 16:20:24 UTC, Alexandr Druzhinin wrote:
23.12.2013 22:52, DLang Beginner пишет:
Either build this libraries like me or try to change dependency in
package.json:
"gtk-d": "~master" => "gtk-d:gt
23.12.2013 22:52, DLang Beginner пишет:
On Monday, 23 December 2013 at 13:50:29 UTC, Alexandr Druzhinin wrote:
You shouldn't create your app inside gtkd structure. Try the following:
cd
mkdir test
cd test
dub init
copy ~/Desktop/gtkd/source/app.d ./source/
copy ~/Desktop/gtkd/package.json
23.12.2013 19:19, DLang Beginner пишет:
On Monday, 23 December 2013 at 10:08:09 UTC, Alexandr Druzhinin wrote:
Show your package.json file and the project structure.
https://www.dropbox.com/s/l3wwm84w85h5su2/dlang-gtk1.png
https://www.dropbox.com/s/9vs4r9l3lvdw2y1/dlang-gtk2.png
You
23.12.2013 15:04, Russel Winder пишет:
For my (very) early stage GtkD program, my SCons script (using "all
source at once") generates a 6MB executable that works. Dub appears to
think that it is creating a .a archive and create 142MB of it. So how to
create an executable with Dub?
I statically b
Show your package.json file and the project structure.
22.12.2013 11:06, Alexandr Druzhinin пишет:
22.12.2013 07:47, Gary Willoughby пишет:
When porting C headers which include function declarations with using
char* types. Is it best to use const char* or const(char)* as the type
in the D declaration?
C vs D
const char* == const(char)*
const char
22.12.2013 07:47, Gary Willoughby пишет:
When porting C headers which include function declarations with using
char* types. Is it best to use const char* or const(char)* as the type
in the D declaration?
C vs D
const char* == const(char)*
const char const* == const char*
05.12.2013 20:43, Dicebot пишет:
It does not matter what third module uses, it is purely about relation
between foo and bar. If foo symbols are not necessary part of public bar
API, third module will import both. If they are, bar will import foo
publicly. Pretty simple.
I realized.
05.12.2013 20:34, Dicebot пишет:
On Thursday, 5 December 2013 at 11:17:18 UTC, Alexandr Druzhinin wrote:
I don't see difference, but it doesn't mean it doesn't exist. What do
you think about it?
It depends on how bar uses foo. You should do public import of symbols
from
Hi all.
How to use use selective imports more effectively? I have two modules
foo and bar:
module foo;
class Foo {}
module bar;
import foo: Foo;
class Bar
{
private Foo foo_;
this(Foo foo)
{
foo_ = foo;
}
}
Now I add module baz that use both
29.11.2013 21:58, Jordi Sayol пишет:
El 29/11/13 07:55, Alexandr Druzhinin ha escrit:
I recompile old project with dmd 2.064 and get the runtime error:
Fatal Error while loading '/usr/lib/x86_64-linux-gnu/libphobos2.so.0.64':
The module 'std.path' is already defined i
I recompile old project with dmd 2.064 and get the runtime error:
Fatal Error while loading '/usr/lib/x86_64-linux-gnu/libphobos2.so.0.64':
The module 'std.path' is already defined in
'bin64/workstation-x86-sdl_64'.
How can I avoid this `collision`?
16.11.2013 18:38, Jonathan M Davis пишет:
Well, if you want to get a slice which refers to the same thing as that slice
but includes elements which are in what is being sliced but which aren't in
that slice, you can only get the slice that you want be reslicing whatever the
slices came from. So,
15.11.2013 22:13, bearophile пишет:
Alexandr Druzhinin:
A simple solution is to keep two indexes, and use them to find the
slices when you need them.
I did it the first. But then I decided to make it more D-ish and
stumbled upon the issue. Wasn't it wrong decision and would be better to
15.11.2013 22:09, Adam D. Ruppe пишет:
You could make it work like this:
auto slice3 = array[
slice1.length + (slice1.ptr - array.ptr)
..
(slice2.ptr - array.ptr)];
Since the slices all start into array somewhere, subtracting the
point
I'd like to get slice that's consist of begining one other slice and end
of yet another slice (all slices belong to the same array of course). Is
it possible? With iterators it's simple, but I can't manage do it with
slices.
http://dpaste.dzfl.pl/443cd4a1
10.11.2013 23:22, Benjamin Thaut пишет:
Am 10.11.2013 17:06, schrieb Alexandr Druzhinin:
Because in D Classes are reference types. That means the code you wrote
is equivalent to the following C++ source:
class Foo
{
public:
Foo(Object* o)
{
printf("%x\n", &this);
Could somebody explain why this http://dpaste.dzfl.pl/248262b9 return this:
Foo:
7FBFD59A50
7FBFD59A80
Bar:
7FBFD59A58
7FBFD59A88
Why this value in ctor is different from this value out of ctor if ctor
gets an argument?
07.11.2013 22:53, Alexandr Druzhinin пишет:
07.11.2013 22:12, Benjamin Thaut пишет:
Am 07.11.2013 15:58, schrieb Jacob Carlborg:
On 2013-11-07 11:45, Benjamin Thaut wrote:
I'm wondering what's the correct way to handle multiple gtk
installations on windows? When developing I most l
07.11.2013 22:12, Benjamin Thaut пишет:
Am 07.11.2013 15:58, schrieb Jacob Carlborg:
On 2013-11-07 11:45, Benjamin Thaut wrote:
I'm wondering what's the correct way to handle multiple gtk
installations on windows? When developing I most likely will have at
least two at all times, the 32-bit ver
25.10.2013 02:08, Adam D. Ruppe пишет:
On Thursday, 24 October 2013 at 17:59:03 UTC, Alexandr Druzhinin wrote:
foo(cast(float[]) points); // is it safe?
Two options would be to make the points itself be a float[] with the
names just properties into the index:
struct Point {
float[7] data
May I cast like:
struct Point
{
float x, y, z;
float r, g, b, a;
}
Point[] points;
void foo(float[] float_array) {};
foo(cast(float[]) points); // is it safe?
May be more elegant way do express this exists?
Thanks
21.10.2013 17:55, Krzysztof Ciebiera пишет:
On Monday, 21 October 2013 at 10:41:38 UTC, Alexandr Druzhinin wrote:
21.10.2013 17:31, Krzysztof Ciebiera пишет:
void main()
{
int a[][] = [[1,2,3]];
foreach(x; a)
{
x[0] = 0;
x ~= 4;
}
writeln(a);
}
...
&
21.10.2013 17:31, Krzysztof Ciebiera пишет:
Is the following compiler behavior consistent with language specification?
import std.stdio;
void main()
{
int a[][] = [[1,2,3]];
foreach(x; a)
{
x[0] = 0;
x ~= 4;
}
writeln(a);
}
I understand why thw progra
02.10.2013 22:47, bearophile пишет:
It's often a good idea to use typeof to keep the code more DRY and safer.
I'm sure keeping the code dry and clean is very good idea, but using
typeof is rather verbose and just is unusual and verbose a little bit.
Another possible solution is to put the
I'm curious what is the best way to code like this:
// request_id zoom x y pathurl
auto msg = receiveOnly!(size_t, zoom, uint, uint, string, string)();
or like this
auto msg = receiveOnly!(
typeof(request_id),
typeof(zoom),
typeof(x),
02.10.2013 12:41, Jonathan M Davis пишет:
On Wednesday, October 02, 2013 12:32:24 Alexandr Druzhinin wrote:
Is it safe to replace code:
uint index;
// do something
index++;
if(index == index.max)
index = index.init;
by the following code
uint index;
// do something
index++; /// I use unsigned
Is it safe to replace code:
uint index;
// do something
index++;
if(index == index.max)
index = index.init;
by the following code
uint index;
// do something
index++; /// I use unsigned int so uint.max changed to 0 automagically
Thanks in advance
28.09.2013 20:14, Jordi Sayol пишет:
Can I see your full command line please?
$ dmd -lcurl
I use dub, but I did rdmd version:
rdmd --build-only -I/home/drug/.dub/packages/derelict-master/import
-I/home/drug/.dub/packages/glamour-master -version=Derelict3
-version=gl3n -I/home/drug/.dub/
Thank you for info! I will redesign.
28.09.2013 17:06, Jordi Sayol пишет:
On 28/09/13 10:28, Alexandr Druzhinin wrote:
I use curl in my application. If I link it with -lcurl - symbols are undefined
(libcurl3 installed), if I link with -lphobos2 - it links. So curl is linked
with libphobos2.so? But what to do if I need static
28.09.2013 15:50, Jonathan M Davis пишет:
It's just as wrong to catch Throwable there is at is anywhere. If you do that
you'll catch Errors, and Errors are _supposed_ to kill your program. They
indicate that something bad enough has occurred that it's better to terminate
your program than contin
catching Throwable is wrong. But is it wrong if I used it in separate
thread to prevent thread dying like:
static void run()
{
while(true)
{
try
{
/// do work
...
// interacti
I use curl in my application. If I link it with -lcurl - symbols are
undefined (libcurl3 installed), if I link with -lphobos2 - it links. So
curl is linked with libphobos2.so? But what to do if I need static
linking? (ubuntu 12.04 x86_64, dmd 2.063.2)
20.09.2013 23:09, Jonathan M Davis пишет:
You can use NVI with classes just fine just so long as you use protected rather
than private, but making it private there won't work either, because private
is never virtual (and it wouldn't really help you any if it were, because
while the base class pri
20.09.2013 12:45, Ali Çehreli пишет:
On 09/19/2013 10:31 PM, Alexandr Druzhinin wrote:
> if I use protected instead of private in interface like:
private member functions are non-virtual.
But I just use code example from TDPL russian edition. And TDPL says
clearly that (un)transmogrify()
if I use protected instead of private in interface like:
interface Transmogrifier
{
final void thereAndBack()
{
transmogrify();
untransmogrify();
}
protected:
void transmogrify();
void untransmogrify()
Hello all.
I try to use NVI and failed with a snippet from TDPL:
interface Transmogrifier
{
final void thereAndBack()
{
transmogrify();
untransmogrify();
}
private:
void transmogrify();
void untransm
12.09.2013 14:45, Rene Zwanenburg пишет:
On Thursday, 12 September 2013 at 05:59:33 UTC, monarch_dodra
wrote:
On Thursday, 12 September 2013 at 05:36:31 UTC, Alexandr Druzhinin wrote:
Some C function malloc-ed memory. This memory should be freeed much
later. I don't want to manually c
Some C function malloc-ed memory. This memory should be freeed much
later. I don't want to manually call C function to free this memory in
some point later, so may I in some way ask gc to free this memory using
something like addRoot(for instance) or else or the true way is to copy
malloc-ed me
04.09.2013 0:58, Ali Çehreli пишет:
One way is, the child can send a special message (even the exception
itself) when it terminates:
// ... at the worker ...
try {
// ...
} catch (shared(Exception) exc) {
owner.send(exc
Hello
I try to get known if daughter thread finished its work using
OwnerFailed exception catching like TDPL says, but std.concurrency has
no such symbol. So, something changed. Can somebody help me with this
case - finding if a child thread finished/terminated?
I know about spawnLinked, but I
10.08.2013 01:30, Gary Willoughby пишет:
On Friday, 9 August 2013 at 16:39:41 UTC, Alexandr Druzhinin wrote:
-profile switch doesn't work for me (nothing happens), so I'm curious
how to profile?
I had the same problem on Linux where -profile didn't seem to produce
anything.
10.08.2013 00:59, H. S. Teoh пишет:
On Fri, Aug 09, 2013 at 11:39:41PM +0700, Alexandr Druzhinin wrote:
-profile switch doesn't work for me (nothing happens), so I'm
curious how to profile?
You've to run your program first. It will create a bunch of extra files
in your
-profile switch doesn't work for me (nothing happens), so I'm curious
how to profile?
04.06.2013 19:18, Alexandr Druzhinin пишет:
31.05.2013 8:56, Alexandr Druzhinin пишет:
Hello
I have code like this:
class SomeClass {
ubyte[] data_;
...
auto getObjectType() const {
if(data_ is null) {
writeln("throwing");
throw new Exception
31.05.2013 8:56, Alexandr Druzhinin пишет:
Hello
I have code like this:
class SomeClass {
ubyte[] data_;
...
auto getObjectType() const {
if(data_ is null) {
writeln("throwing");
throw new Exception("Here the exception s
03.06.2013 12:26, Ali Çehreli пишет:
On 06/02/2013 08:23 PM, Alexandr Druzhinin wrote:
> I found that after calling
> std.concurrency.spawn() template - exceptions stop throwing, but if I
> add little delay in beginning of spawned thread about 100 ms - it'd
> works aga
31.05.2013 8:56, Alexandr Druzhinin пишет:
Hello
I have code like this:
class SomeClass {
ubyte[] data_;
...
auto getObjectType() const {
if(data_ is null) {
writeln("throwing");
throw new Exception("Here the exception s
31.05.2013 10:49, Marco Leise пишет:
The code that you haven't shown reads:
int main(string[] args) {
SomeClass c;
auto t = c.getObjectType();
return 0;
}
You have to fix that!
You mean I didn't initialize c? If even so, it should throw an
exception, no hanging, I
31.05.2013 8:59, Adam D. Ruppe пишет:
three questions come to mind:
1) what operating system and 32 bit or 64 bit?
2) what D compiler?
3) are you sure you didn't catch the exception somewhere up the chain
and silence the message that way?
1) win7 64
2) dmd 32
3) I don't catch explicitly. To ens
Hello
I have code like this:
class SomeClass {
ubyte[] data_;
...
auto getObjectType() const {
if(data_ is null) {
writeln("throwing");
throw new Exception("Here the exception should be thrown!");
}
KeyHeaderHelper value_header;
19.05.2013 20:11, Mike Wey пишет:
On 05/19/2013 09:43 AM, Alexandr Druzhinin wrote:
Try this http://gtkd.org/Downloads/GtkDGL.zip
The glu32.lib in that zip contains only the symbols needed by the
SimpleGL demo.
I built more complex application than SimpleGL successfully with it.
Can you
Try this http://gtkd.org/Downloads/GtkDGL.zip
18.05.2013 16:17, Enjoys Math пишет:
Then upon continuing I get an infinitely repeating
Unhandled exception at 0x in WindowsApp2.exe: 0xC005:
Access violation reading location 0x.
message box popping up.
Did you check that path to Gtk runtime binaries is the first? I guess
18.05.2013 15:34, Enjoys Math пишет:
And the errors are:
OPTLINK (R) for Win32 Release 8.00.12
Copyright (C) Digital Mars 1989-2010 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
C:\D\dmd2\windows\bin\..\lib\GtkD.lib(ObjectG)
Error 42: Symbol Undefined _D4core6memory2GC7ad
18.05.2013 14:53, Enjoys Math пишет:
I re-installed DMD 2.062 and now it's a compiler error:
-- Build started: Project: ConsoleApp3, Configuration: Debug Win32
--
Building Debug\ConsoleApp3.exe...
OPTLINK (R) for Win32 Release 8.00.12
Copyright (C) Digital Mars 1989-2010 All rights res
18.05.2013 9:52, Enjoys Math пишет:
I'm on Windows 7 64-bit and using DMD2, compiling a regular 32-bit
windows app using Visual D "New Project > Windows App" and replacing
winmain.d with the code below:
> ...
I'm using GtkD-2.2.0 from here:
https://code.google.com/p/gtkd-packages/downloads/li
07.05.2013 8:55, Alexandr Druzhinin пишет:
07.05.2013 1:40, Maxim Fomin пишет:
On Monday, 6 May 2013 at 17:48:58 UTC, Alexandr Druzhinin wrote:
07.05.2013 0:39, Maxim Fomin пишет:
On Monday, 6 May 2013 at 16:37:18 UTC, Alexandr Druzhinin wrote:
during building I get:
Assertion failure
07.05.2013 1:40, Maxim Fomin пишет:
On Monday, 6 May 2013 at 17:48:58 UTC, Alexandr Druzhinin wrote:
07.05.2013 0:39, Maxim Fomin пишет:
On Monday, 6 May 2013 at 16:37:18 UTC, Alexandr Druzhinin wrote:
during building I get:
Assertion failure: 'alignment > 0 && !(alignment
07.05.2013 0:39, Maxim Fomin пишет:
On Monday, 6 May 2013 at 16:37:18 UTC, Alexandr Druzhinin wrote:
during building I get:
Assertion failure: 'alignment > 0 && !(alignment & (alignment - 1))'
on line 239
in file 'struct.c'
abnormal program termination
w
during building I get:
Assertion failure: 'alignment > 0 && !(alignment & (alignment - 1))' on
line 239
in file 'struct.c'
abnormal program termination
what should I do to help us to catch this?
04.05.2013 1:18, Mike Wey пишет:
On 05/03/2013 06:30 PM, Alexandr Druzhinin wrote:
I need to connect to "notify::active" signal for Switch widget to
process changing of its state. The guides say I shouldn't use onActivate
signal, but "notify:active". But I didn
I need to connect to "notify::active" signal for Switch widget to
process changing of its state. The guides say I shouldn't use onActivate
signal, but "notify:active". But I didn't find a way to do it. Can
somebody help with it?
03.05.2013 8:29, Carlos пишет:
I got it working now. I'm using the sample code and I made another
layout with Glade for GTK+3 and saved it with the same name, so when I
compile the file is called and I get the UI I wanted.
SO now next step is to learn the signals part, Right ?
right. and it's
03.05.2013 0:43, Mike Wey пишет:
On 05/02/2013 03:58 PM, Alexandr Druzhinin wrote:
How to use GtkD with Glade? Is some tutorial available?
I spent some time trying to use Glade to build non-trivial application,
but I do it very inproductive, so I'd like to get some help or I'm
afraid
03.05.2013 7:55, Carlos пишет:
Sorry if this was too wild but this is what I can do at the moment since
I don't see a "gladeText" program which I believe is required for this
action I did my guess.
code:
dmd builderTest.d $(pkg-config --cflags --libs gtkd-2) builder
~/Documents/Glade/builderTe
03.05.2013 7:24, Alexandr Druzhinin пишет:
I can't believe an hour has passed so easy.
How do I specify the doferent glade ?, During compilation ?
if you mean glade file with different name then answer is yes. but if
you just want to use another glade file with the same name then answer
03.05.2013 0:43, Mike Wey пишет:
There is an small example distributed with GtkD:
https://github.com/gtkd-developers/GtkD/blob/master/demos/builder/builderTest.d
Oops, didn't see.
03.05.2013 6:12, Carlos пишет:
Normally the example looks for builderTest.glade in the directory
where the binary is.
There one in the GtkD git
https://github.com/gtkd-developers/GtkD/blob/master/demos/builder/builderTest.glade
You can also specify a different glade file on the commandline, t
How to use GtkD with Glade? Is some tutorial available?
I spent some time trying to use Glade to build non-trivial application,
but I do it very inproductive, so I'd like to get some help or I'm
afraid it will be lasting for years...
For example, if somebody would upload some example of Gtk appl
28.04.2013 20:26, Mike Wey пишет:
On 04/28/2013 01:04 PM, Alexandr Druzhinin wrote:
developers version of GtkD solves my problem. but GtkD 2.1.1 from
download page doesn't. May be remove it from there to avoid such
problems?
Does it also draw the triangle properly for you?
yes, it work
developers version of GtkD solves my problem. but GtkD 2.1.1 from
download page doesn't. May be remove it from there to avoid such problems?
27.04.2013 0:57, Mike Wey пишет:
Should be working now.
Yes, 32bit binary works well (didn't run 64bit). Thank you very much!
26.04.2013 3:45, Mike Wey пишет:
http://gtkd.org/Downloads/SimpleGL.zip
After updating dmd the demo no longer draws the triangle, i still need
to figure out why.
Link is broken
24.04.2013 4:02, Mike Wey пишет:
I don't think it's the line number. I think i may have this error on my
machine once, but not since then. And i can't reproduce it.
Could I ask you to build SimpleGL demo, check it works and send binary
to me? It can help me in solving my trouble.
Thank in adva
10.04.2013 3:48, Mike Wey пишет:
I was able to build gtkglext3 on windows, and i've uploaded a zip file
containing the dll's.
http://gtkd.org/Downloads/GtkDGL.zip
I've also included the static libs for GtkDGL and for 32bits windows two
import libraries for opengl and glu, for win64 these are i
I'm not sure, but I suspect this is because of 80-bit intermediary float
point operation result. Its precision too excessive and gives us this
inexpectible result. But when you use an intermediary variable this
exessive intermediary result is rounded properly and you get what you
expect. See he
11.04.2013 12:13, Alexandr Druzhinin пишет:
Ali, please, take a look at this http://dpaste.dzfl.pl/44e64eb0
it's code of ctor of iota float point specialization. And it's strange
for me, that pastEnd and (start + count * step) have the same value, but
give different comparing results.
05.04.2013 1:26, Ali Çehreli пишет:
I was wrong. What I found is just a workaround. Created a bug for iota:
http://d.puremagic.com/issues/show_bug.cgi?id=9877
The following program fails when compiled with -m32:
import std.range;
void main()
{
float st = 0.000;
float
05.04.2013 0:26, Ali Çehreli пишет:
>
I was wrong. What I found is just a workaround. Created a bug for iota:
http://d.puremagic.com/issues/show_bug.cgi?id=9877
The following program fails when compiled with -m32:
import std.range;
void main()
{
float st = 0.000;
floa
04.04.2013 21:24, Ali Çehreli пишет:
On 04/04/2013 06:27 AM, Alexandr Druzhinin wrote:
on win7 64 bits using dmd 2.062 32 bits this code http://dpaste.dzfl.pl
/6cca43b5 failed with assert failure:
core.exception.AssertError@std.range(5288): Assertion failure
but on ubuntu 12.04 64 bits, dmd
on win7 64 bits using dmd 2.062 32 bits this code http://dpaste.dzfl.pl
/6cca43b5 failed with assert failure:
core.exception.AssertError@std.range(5288): Assertion failure
but on ubuntu 12.04 64 bits, dmd 2.062 64 bit it compiles and works
rather well. May be I missed something important with it
03.04.2013 4:13, Mike Wey пишет:
GtkD relies on gtkglext-3 for it's openGL support it can be found here:
https://github.com/tdz/gtkglext
It currently isn't included in the Gtk-runtime installer, and as far as
i know there aren't any binaries readily available for windows.
And i haven't yet fou
03.04.2013 1:08, Jesse Phillips пишет:
GtkD is only bindings for the actual GTK library, that library must be
installed to use GtkD. GtkD being using static linking (at compile time)
you need to tell the linker you want the GTK library too.
The best way to do this I don't know. The website sugg
02.04.2013 21:38, Jesse Phillips пишет:
On Tuesday, 2 April 2013 at 06:19:23 UTC, Alexandr Druzhinin wrote:
02.04.2013 1:32, Jesse Phillips пишет:
Please provide your compile command, it looks like you didn't tell the
linker where to find GtkD.
cd path/to/GtkD/demos/gl/simple
dmd Simpl
02.04.2013 1:32, Jesse Phillips пишет:
Please provide your compile command, it looks like you didn't tell the
linker where to find GtkD.
cd path/to/GtkD/demos/gl/simple
dmd SimpleGL.d -I../../../src -I../../../srcgl ../../../src/GtkD.lib
without GtkD.lib there are much more undefined symbols
I built GtkD following instructions from
https://github.com/gtkd-developers/GtkD/wiki/Installing-on-Windows. Then
I tried to build demo from demos/gl/simple/simplegl.d and failed with
undefined symbols http://dpaste.dzfl.pl/ba0c3277
Script (dgen.d) builds the whole library and there is no separa
27.03.2013 17:43, SaltySugar пишет:
How to get a piece of text from the Internet page with D code?
Its totally depends on context you are workin. For example you can use D
as script and by means of wget to get the whole page and then parse it
with sed. Also you can use curl and use D as program
32 bit versions (using dmd and gdc, win7/ubuntu 12.04) of my application
always leak very fast. But 64 bit version (ubuntu 12.04 only, win7
segfaults) works stable without any leaks. I'm curious is there some
workaround or I have to wait for GC improvement to build 32bit version,
without choice
28.02.2013 16:35, rho пишет:
hi,
what keeps me from using d, is that there is no compilable gui lib
available. does dfl compile with the latest dmd?
DWT is compilable with the last dmd and works fine
Also GTK is available, but I didn't tested it
1 - 100 of 142 matches
Mail list logo