Re: How array concatenation works... internally

2018-04-23 Thread Dnewbie via Digitalmars-d-learn
On Monday, 23 April 2018 at 23:27:17 UTC, Steven Schveighoffer wrote: ... If you want to know more about the array runtime, I suggest this article: https://dlang.org/articles/d-array-article.html ... Thanks for replying and this article is what I was looking for.

Re: How array concatenation works... internally

2018-04-23 Thread Dnewbie via Digitalmars-d-learn
On Monday, 23 April 2018 at 23:15:13 UTC, Dnewbie wrote: It's related to memcpy? By the way... It's related to realloc and memcpy?

How array concatenation works... internally

2018-04-23 Thread Dnewbie via Digitalmars-d-learn
Hi, I'd like to understand how array concatenation works internally, like the example below: //DMD64 D Compiler 2.072.2 import std.stdio; void main(){ string[] arr; arr.length = 2; arr[0] = "Hello"; arr[1] = "World"; writeln(arr.length); arr = arr[0..1] ~ "New String"

Re: Some feedback on the website.

2015-12-15 Thread dnewbie via Digitalmars-d
On Tuesday, 15 December 2015 at 07:07:23 UTC, deadalnix wrote: Navigation: The navigation can get very confusing. The forum and the site look the same, but the logo in the top right bring back to the site index/forum index . I thought that only I had saw this. Yes it's wrong. To go to

Re: We need better documentation for functions with ranges and templates

2015-12-15 Thread dnewbie via Digitalmars-d
On Tuesday, 15 December 2015 at 09:57:00 UTC, ZombineDev wrote: On Monday, 14 December 2015 at 19:56:29 UTC, dnewbie wrote: On Monday, 14 December 2015 at 19:04:46 UTC, bachmeier wrote: It's unanimous, at least among the three of us posting in this Reddit thread: ... Take for example C

Re: We need better documentation for functions with ranges and templates

2015-12-14 Thread dnewbie via Digitalmars-d
On Monday, 14 December 2015 at 19:04:46 UTC, bachmeier wrote: It's unanimous, at least among the three of us posting in this Reddit thread: ... Take for example C# Docs: https://msdn.microsoft.com/en-us/library/system.collections.arraylist.addrange.aspx Syntax C#: public virtual void

Re: We need better documentation for functions with ranges and templates

2015-12-14 Thread dnewbie via Digitalmars-d
On Monday, 14 December 2015 at 20:08:20 UTC, Jack Stouffer wrote: You're not really comparing apples to apples here In fact I'm not, but the main focus here was about the simplicity of the layout used on the C# doc. You can see others examples there easily including templates and generics

Re: Looking for someone that could work on 32 bits support for SDC

2015-09-13 Thread dnewbie via Digitalmars-d
On Sunday, 13 September 2015 at 19:49:58 UTC, deadalnix wrote: That's a pitty. libd itself could be usefull to program some tools for the language. I particularly think to IDE stuff like symbol list, module name finder, etc. So far in Coedit I use libdparse but if libd would be available for

Re: Programming in D paper book is available for purchase

2015-08-19 Thread dnewbie via Digitalmars-d-announce
On Wednesday, 19 August 2015 at 00:57:32 UTC, Ali Çehreli wrote: I am very happy! :) Ordered Thank You Ali.

Re: Martin Nowak is officially MIA

2015-06-17 Thread dnewbie via Digitalmars-d
I understand the feeling, but that seems unnecessarily harsh to demote Martin, since he is the one that have done the most for release, and it yielded actual results. Indeed.

Re: DMD v2.066.0-rc2

2014-08-11 Thread dnewbie via Digitalmars-d-announce
On Friday, 8 August 2014 at 12:01:43 UTC, Andrew Edwards wrote: DMD v2.066.0-rc2 binaries are available for testing: http://wiki.dlang.org/Beta_Testing curl.lib not found in dmd.2.066.0-rc2.windows.zip\dmd2\windows\lib

Re: DMD v2.066.0-rc2

2014-08-11 Thread dnewbie via Digitalmars-d-announce
On Monday, 11 August 2014 at 19:32:27 UTC, Brad Anderson wrote: On Monday, 11 August 2014 at 19:02:18 UTC, Brad Anderson wrote: On Monday, 11 August 2014 at 15:51:16 UTC, dnewbie wrote: On Friday, 8 August 2014 at 12:01:43 UTC, Andrew Edwards wrote: DMD v2.066.0-rc2 binaries are available

Re: D LDAP library?

2014-08-11 Thread dnewbie via Digitalmars-d
On Tuesday, 12 August 2014 at 00:36:17 UTC, Andrei Alexandrescu wrote: Hello, got a question today from a user - is there an LDAP library for D? Thanks! -- Andrei There is a raw binding to openldap c library. http://d.darktech.org/bindings/ldap.zip

Poll - How long have you been in D?

2014-04-03 Thread dnewbie
Please vote now! http://www.easypolls.net/poll.html?p=533e10e4e4b0edddf89898c5 See also results from previous years: - http://d.darktech.org/2012.png - http://d.darktech.org/2013.png

Re: sha1Of() crashing and incorrect result on win64

2014-03-06 Thread dnewbie
On Thursday, 6 March 2014 at 15:56:07 UTC, Andrej Mitrovic wrote: On 3/6/14, knutaf a...@b.com wrote: and then crashes. If I build without -m64, I get A9993E364706816ABA3E25717850C26C9CD0D89D, which is what I was expecting. It works fine for me using 2.064 and 2.065, both with and without

Re: sha1Of() crashing and incorrect result on win64

2014-03-06 Thread dnewbie
It works with DMD/Phobos from GIT.

Re: Question about function aliases

2013-12-11 Thread dnewbie
On Wednesday, 11 December 2013 at 23:42:44 UTC, Gary Willoughby wrote: For example i have some C code like this: typedef void (Tcl_InterpDeleteProc) _ANSI_ARGS_((ClientData clientData, Tcl_Interp *interp)); void Tcl_CallWhenDeleted(Tcl_Interp* interp, Tcl_InterpDeleteProc* proc, ClientData

Re: Help needed testing automatic win64 configuration

2013-10-16 Thread dnewbie
On Wednesday, 16 October 2013 at 01:15:20 UTC, Brad Anderson wrote: On Tuesday, 15 October 2013 at 06:38:30 UTC, dnewbie wrote: VS 2010 Express/Windows SDK 7.0: dmd -m64 hello.d Can't run 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\link.exe', check PATH with dmd-2.064

Re: Help needed testing automatic win64 configuration

2013-10-15 Thread dnewbie
VS 2010 Express/Windows SDK 7.0: dmd -m64 hello.d Can't run 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\link.exe', check PATH with dmd-2.064-beta-new-sc.ini-2.exe

Re: Getting the missing Windows functions

2013-10-08 Thread dnewbie
On Tuesday, 8 October 2013 at 08:54:44 UTC, Mike Parker wrote: On 10/8/2013 6:57 AM, Andrej Mitrovic wrote: On 10/7/13, Matt webwra...@fastmail.fm wrote: The missing functions (or at least the one I'm interested in at the moment) that I'm trying to use are supposed to be IN kernel32, and have

Re: How to cleanup after Socket.bind on Linux?

2013-08-26 Thread dnewbie
On Tuesday, 27 August 2013 at 03:30:11 UTC, Ali Çehreli wrote: It cannot be started a second time for 8080 still being in use, unless you wait for several seconds It works on Windows7, no need to wait.

Re: Poll: how long have you been into D

2013-07-14 Thread dnewbie
On Saturday, 6 July 2013 at 01:33:09 UTC, dnewbie wrote: Hi. It's time for the annual poll of the year. Please vote http://www.easypolls.net/poll.html?p=51d766e4e4b03d6de547a64b Here are the results. 2012 2013 1 year 27% 21% 1-2 years 25% 27% 3-5 years 28% 31% 6-10

Re: DLLs: Cleaning up

2013-07-11 Thread dnewbie
On Thursday, 11 July 2013 at 12:58:42 UTC, Chris wrote: I have a DLL written in D I load into a Python application via ctypes like so: lib = CDLL(mydll) The DLL loads and can be used no problem. However, once the DLL is discarded of by the program, the program either doesn't react or

Re: Linear algebra for Win64?

2013-07-09 Thread dnewbie
On Tuesday, 9 July 2013 at 19:02:09 UTC, Kevin McTaggart wrote: Does anyone know of a good D linear algebra library for Win64? I tried scid a year ago and liked it on Win32, but have been unable to get it to link on Win64. When trying to run scid on Win64, I've been using prebuilt LAPACK

Poll: how long have you been into D

2013-07-05 Thread dnewbie
Hi. It's time for the annual poll of the year. Please vote http://www.easypolls.net/poll.html?p=51d766e4e4b03d6de547a64b

Re: DConf 2013 Day 1 Talk 2: Copy and Move Semantics in D by Ali Cehreli

2013-05-13 Thread dnewbie
On Friday, 10 May 2013 at 12:08:10 UTC, Andrei Alexandrescu wrote: Enjoy! https://www.youtube.com/watch?v=mPr2UspS0fE Andrei Very good presentation. Thank you Ali.

Re: x64 Link Issues - Can someone please help?

2013-04-19 Thread dnewbie
phobos64.lib(dmain2_4ac_1a5.obj) : error LNK2019: unresolved external symbol _Dmain referenced in function main Please add -L/DLL to the command line.

Re: D 2.062 release

2013-02-17 Thread dnewbie
On Monday, 18 February 2013 at 01:02:43 UTC, Walter Bright wrote: http://digitalmars.com/d/download.html The dlang.org site isn't updated yet, but the downloads are there. Thank you Walter Bright. I appreciate your work.

Trouble with DLL address

2013-01-14 Thread dnewbie
I have a DLL which exports a function GetFunction. GetFunction returns a pointer to RealFunction. Now I want to run RealFunction from my D program, but for some reason I get the wrong address. Here is the code. dll64.c - #define WIN32_LEAN_AND_MEAN #include windows.h int __stdcall

Re: Trouble with DLL address

2013-01-14 Thread dnewbie
The problem is FARPROC. Thank you everybody. Solution: import core.runtime; import std.c.windows.windows; import std.stdio; alias extern(Windows) int function(int) FuncPtr; alias extern(Windows) FuncPtr function() GetFuncPtr; int main(string[] args) { HMODULE dll=

Re: Creation of import libraries for Windows

2013-01-10 Thread dnewbie
On Thursday, 10 January 2013 at 17:29:13 UTC, Phil Lavoie wrote: Hi all, This is actually a duplicate of my post on the D.learn forums :). I am concerned that it hasn't been answered only because it is in a less popular sub forum. I'll try to make it short. This websites recommends implib

Re: What's up with the windows headers?

2012-12-26 Thread dnewbie
On Wednesday, 26 December 2012 at 21:56:31 UTC, Phil Lavoie wrote: All right I got a problem now. Including winver.d triggers the inclusion of version.lib through this: pragma(lib, version.lib); However, this import library does not exist. So I created it using,implib /noi /system version.lib

Re: D Stable Proposal

2012-11-29 Thread dnewbie
Wait.. what happened to dlang-stable? http://forum.dlang.org/thread/op.whi33qsp707...@invictus.skynet.com

Re: #define trouble

2012-11-27 Thread dnewbie
On Tuesday, 27 November 2012 at 06:27:49 UTC, Ali Çehreli wrote: On 11/26/2012 10:05 PM, dnewbie wrote: I have the following C struct from ldap.h typedef struct ldapmod { int mod_op; char *mod_type; union mod_vals_u { char **modv_strvals; struct berval **modv_bvals; } mod_vals; #define

#define trouble

2012-11-26 Thread dnewbie
I have the following C struct from ldap.h typedef struct ldapmod { int mod_op; char *mod_type; union mod_vals_u { char **modv_strvals; struct berval **modv_bvals; } mod_vals; #define mod_values mod_vals.modv_strvals #define

Re: Windows DLLs and TLS

2012-10-09 Thread dnewbie
You can try compiling it with GDC! Please check this thread: http://forum.dlang.org/thread/nowjthaqnjfrcvqeu...@forum.dlang.org

Re: std.demangle.demangle does not parse symbols that are type names

2012-08-21 Thread dnewbie
Why don't you remove the 'create thread' button from this forum? Lazy people...

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread dnewbie
Memory usage of my program when compiled by dmd2.057, 2.058, 2.059 2.060: http://postimage.org/image/hqn6l4l8p/ It's a great improvement. Thanks for the new release.

Re: Wiki page for C bindings / wrappers and reimplementations

2012-08-01 Thread dnewbie
On Wednesday, 1 August 2012 at 17:18:36 UTC, Marco Leise wrote: Am Mon, 30 Jul 2012 16:50:57 +0200 schrieb Marco Leise marco.le...@gmx.de: I have now written a simple web site the lists C bindings by category. It is updated every day. http://mleise.abcz8.com/d/bindings.php Currently it only

Re: D support in Exuberant Ctags 5.8 for Windows

2012-07-26 Thread dnewbie
On Thursday, 26 July 2012 at 22:06:08 UTC, Gary Willoughby wrote: I'm looking at this page and trying to download the latest CTags 5.8 with D patch compiled for Windows but i'm getting a dead link. Does anyone else have this file or can point me to another link?

Re: phobos breakage... why?

2012-07-25 Thread dnewbie
On Wednesday, 25 July 2012 at 17:24:06 UTC, Adam D. Ruppe wrote: I was just playing with the beta, and got this among the sea of errors: arsd/cgi.d(898): Error: function std.algorithm.indexOf!(a == b,ubyte[],string).indexOf is deprecated Why was that taken out? If you ask me, the root cause

Re: Optional name mangling

2012-07-23 Thread dnewbie
On Monday, 23 July 2012 at 20:57:37 UTC, Stuart wrote: On Monday, 23 July 2012 at 17:28:38 UTC, David Nadlinger wrote: On Monday, 23 July 2012 at 17:25:43 UTC, Stuart wrote: Fair enough. But there are still times when we need a version of export that doesn't mangle. No. This is even

Re: WinAPI LowLevel Keyboard Hooks

2012-07-19 Thread dnewbie
On Thursday, 19 July 2012 at 15:49:48 UTC, DLimited wrote: But what are the differences of loading the Unicode version vs. the ANSI version? I called the Unicode one because I figured that would be the sensible choice, since Unicode is the default for D (if I remember correctly). I have no

Re: WinAPI LowLevel Keyboard Hooks

2012-07-19 Thread dnewbie
You don't see the WHOA message? Try this alias HANDLE HHOOK;

Re: WinAPI LowLevel Keyboard Hooks

2012-07-19 Thread dnewbie
On Thursday, 19 July 2012 at 17:48:06 UTC, DLimited wrote: On Thursday, 19 July 2012 at 17:35:29 UTC, dnewbie wrote: You don't see the WHOA message? Try this alias HANDLE HHOOK; No, I don't get any message after key-presses. I changed int function() to HANDLE, sadly it still doesn't work

Re: WinAPI LowLevel Keyboard Hooks

2012-07-19 Thread dnewbie
On Thursday, 19 July 2012 at 18:56:15 UTC, DLimited wrote: On Thursday, 19 July 2012 at 18:40:15 UTC, dnewbie wrote: On Thursday, 19 July 2012 at 17:48:06 UTC, DLimited wrote: On Thursday, 19 July 2012 at 17:35:29 UTC, dnewbie wrote: You don't see the WHOA message? Try this alias HANDLE HHOOK

Re: WinAPI LowLevel Keyboard Hooks

2012-07-19 Thread dnewbie
On Thursday, 19 July 2012 at 19:51:31 UTC, DLimited wrote: Yes, I did. Are the newlines important? And you really get a MessageBox per keystroke? I start as admin, disabled my AV but still, no success. Yes, I get 2 WHOA messages. One from the WM-KEYDOWN and the other from WM-KEYUP. Sorry I

Re: Some guidance on writing a Deimos C library interface

2012-07-13 Thread dnewbie
Hi Jens. 1. The D page says they should be lower case. Should Deimos module names also be made lower case? Yes. 2. Should all interfaces be put in a common package, say deimos? Yes. * const T* should be replaced with const(T)* Yes. * How to deal with macros?

Re: Winamp plugin

2012-07-12 Thread dnewbie
On Friday, 6 July 2012 at 00:38:28 UTC, dnewbie wrote: It works without error when compiled by GDC. Thanks. Here it is http://my.opera.com/run3/blog/2012/07/12/copyto-winamp-plugin It adds an item in Winamp 'Send to' menu

Re: Linking OpenSSL on Windows

2012-07-08 Thread dnewbie
On Sunday, 8 July 2012 at 22:33:15 UTC, Andy wrote: I've been using D on linux for a few months now and have the hang of it. I wrote a project that should be able to be compiled on both Linux and Windows. I've gotten it to work excellently on Linux, but I can't seem to figure out how to link

Re: Winamp plugin

2012-07-05 Thread dnewbie
On Thursday, 5 July 2012 at 08:55:33 UTC, Denis Shelomovskij wrote: What's your OS? If Windows XP, than D DLL can't be unloaded because of non-perfect TLS fixing technique (I created a perfect one but I never managed to prepare such projects for release so nobody knows about them). And on

Re: Winamp plugin

2012-07-05 Thread dnewbie
It works without error when compiled by GDC. Thanks.

Winamp plugin

2012-07-04 Thread dnewbie
I'm writing a Winamp plugin in D. Winamp loads my plugin and everything is fine until I close Winamp. At this point, Winamp calls the Quit() function of my plugin and *after* that, Winamp crashes. Here is the code. D source http://dpaste.dzfl.pl/e2b2f886 myplugin.def - .DEF file

Re: Build WindowsApi bindings with dmd?

2012-07-02 Thread dnewbie
On Monday, 2 July 2012 at 22:10:00 UTC, Damian wrote: I was looking through the bindings and only see a makefile for GNU make. Is there a version for dmd? I really wanted to avoid GNU make if possible. You can try this https://github.com/AndrejMitrovic/WindowsAPI/downloads

Re: d language Bye

2012-07-01 Thread dnewbie
On Monday, 2 July 2012 at 01:18:29 UTC, 拖狗散步 wrote: On Monday, 2 July 2012 at 01:08:30 UTC, Alex Rønne Petersen wrote: On 02-07-2012 03:04, 拖狗散步 wrote: d language Bye! Although you are very beautiful, but not for wife! wat hoho! dlang is very beautiful, but not is my wife! lol, you're

Re: function pointer when a function is overloaded.

2012-06-30 Thread dnewbie
import std.stdio; alias void function(int) fooInt; alias void function(long) fooLong; int main(string[] args) { fooInt f1 = foo; fooLong f2 = foo; f1(1L); f2(1L); return 0; } void foo(int i) { writeln(foo(int i)); } void foo(long i) { writeln(foo(long i)); }

Re: dpj for Windows

2012-06-27 Thread dnewbie
The dpj mini-ide now displays the name of the current function (from caret position): http://postimage.org/image/exbtxftqv/ Click on the combobox item to jump to the selected function. Thanks dscanner by Sir Alaran https://github.com/Hackerpilot/Dscanner Link: https://github.com/dnewbie/dpj

Re: dpj for Windows

2012-06-16 Thread dnewbie
On Tuesday, 22 May 2012 at 07:28:04 UTC, Ary Manzana wrote: On 5/22/12 8:55 AM, dnewbie wrote: On Monday, 21 May 2012 at 12:08:33 UTC, Ary Manzana wrote: On 5/20/12 10:37 PM, dnewbie wrote: It started as a D project, then I've moved it to C. o_O Why? Because the d version of the program

OPENFILENAME structure

2012-05-30 Thread dnewbie
There's information missing in OPENFILENAME structure file core.sys.windows.windows.d http://msdn.microsoft.com/en-us/library/windows/desktop/ms646839%28v=vs.85%29.aspx #if (_WIN32_WINNT = 0x0500) void *pvReserved; DWORD dwReserved; DWORD FlagsEx; #endif

Re: Windows - ZeroMemory macro

2012-05-27 Thread dnewbie
On Sunday, 27 May 2012 at 03:55:58 UTC, jerro wrote: On Sunday, 27 May 2012 at 03:29:17 UTC, dnewbie wrote: In C I can write OPENFILENAME ofn; ZeroMemory(ofn, sizeof(ofn)); In D, there is no ZeroMemory. Please help me. You could use c memset: import std.c.string; memset(cast(void*)ofn, 0

Re: dpj for Windows

2012-05-26 Thread dnewbie
On Tuesday, 22 May 2012 at 07:28:04 UTC, Ary Manzana wrote: On 5/22/12 8:55 AM, dnewbie wrote: On Monday, 21 May 2012 at 12:08:33 UTC, Ary Manzana wrote: On 5/20/12 10:37 PM, dnewbie wrote: It started as a D project, then I've moved it to C. o_O Why? Because the d version of the program

Windows - ZeroMemory macro

2012-05-26 Thread dnewbie
In C I can write OPENFILENAME ofn; ZeroMemory(ofn, sizeof(ofn)); In D, there is no ZeroMemory. Please help me.

Re: dpj for Windows

2012-05-21 Thread dnewbie
On Monday, 21 May 2012 at 12:08:33 UTC, Ary Manzana wrote: On 5/20/12 10:37 PM, dnewbie wrote: It started as a D project, then I've moved it to C. o_O Why? Because the d version of the program has a lot of weird bugs and I wasn't able to kill them.

Re: dpj for Windows

2012-05-20 Thread dnewbie
On Sunday, 20 May 2012 at 03:53:43 UTC, Nick Sabalausky wrote: dnewbie r...@myopera.com wrote in message news:qufvdhexcdzabuzqr...@forum.dlang.org... dpj is a mini-ide for the D programming language. http://my.opera.com/run3/blog/2012/05/20/dpj That's a good start! Not bad. Is it written

Re: libraries and c++ compatibility

2012-05-13 Thread dnewbie
On Sunday, 13 May 2012 at 02:44:22 UTC, Jason King wrote: I'm trying to use ocilib (deimos\ocilib) bindings and having some issues. dmd 2.0.59, Windows 7 64 bit. I can change sc.ini to get everything to build. I can compile with dmd myapp.d -Ipath_to_deimos -c, but I can't seem to figure out

Re: libraries and c++ compatibility

2012-05-13 Thread dnewbie
On Sunday, 13 May 2012 at 19:01:15 UTC, Jason King wrote: . C:\ocilib\ocilib3.9.3\lib32dmc myapp.cpp -c -Ic:\ocilib\ocilib3.9.3\include C:\ocilib\ocilib3.9.3\lib32optlink myapp.obj,,,ociliba-dm.lib OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights

Re: mysql binding/wrapper?

2012-04-29 Thread dnewbie
On Saturday, 28 April 2012 at 15:30:13 UTC, simendsjo wrote: stuff/blob/master/mysql.d http://my.opera.com/run3/blog/2012/03/13/d-mysql I use it in a bank account application. It works.

Re: Let's give a honor to dead giants!

2012-04-22 Thread dnewbie
On Sunday, 22 April 2012 at 00:58:58 UTC, Brian Schott wrote: On Friday, 20 April 2012 at 03:33:43 UTC, H. S. Teoh wrote: One thing I miss, though, is ctags support for D. 1. It seems that everything can understand Ctags 2. The format's not complicated at all. I just committed support for a

Re: string concatenation

2012-04-08 Thread dnewbie
On Sunday, 8 April 2012 at 05:27:50 UTC, Jonathan M Davis wrote: On Sunday, April 08, 2012 07:08:09 dnewbie wrote: I have a wchar[] and I want to convert it to UTF8 then append a string. This is my code. import std.c.windows.windows; import std.string; import std.utf; int main() { wchar

string concatenation

2012-04-07 Thread dnewbie
I have a wchar[] and I want to convert it to UTF8 then append a string. This is my code. import std.c.windows.windows; import std.string; import std.utf; int main() { wchar[100] v; v[0] = 'H'; v[1] = 'e'; v[2] = 'l'; v[3] = 'l'; v[4] = 'o'; v[5] = 0; string s = toUTF8(v)

Re: Oracle Database - ocilib

2012-04-05 Thread dnewbie
On Thursday, 5 April 2012 at 06:15:59 UTC, Walter Bright wrote: On 4/4/2012 9:47 AM, dnewbie wrote: On Tuesday, 3 April 2012 at 04:01:07 UTC, dnewbie wrote: It also works on Linux (I've just tested it on Debian Squeeze with Oracle Express) Rock'n'roll! Hi. I'd like to submit these bindings

Re: Oracle Database - ocilib

2012-04-05 Thread dnewbie
On Thursday, 5 April 2012 at 17:58:15 UTC, Walter Bright wrote: https://github.com/D-Programming-Deimos/ocilib Thank you.

Re: Oracle Database - ocilib

2012-04-04 Thread dnewbie
On Tuesday, 3 April 2012 at 04:01:07 UTC, dnewbie wrote: It also works on Linux (I've just tested it on Debian Squeeze with Oracle Express) Rock'n'roll! Hi. I'd like to submit these bindings to be reviewed for inclusion in Deimos.

Re: Oracle Database - ocilib

2012-04-02 Thread dnewbie
It also works on Linux (I've just tested it on Debian Squeeze with Oracle Express) Rock'n'roll!

Oracle Database - ocilib

2012-04-01 Thread dnewbie
I've added oracle binding (ocilib). It was tested on Windows with Oracle Express Edition. http://my.opera.com/run3/blog/2012/04/02/d-oracle

Re: Poll of the week - How long have you been in the D world?

2012-03-31 Thread dnewbie
On Friday, 30 March 2012 at 22:17:55 UTC, Stewart Gordon wrote: I see that the numbers are almost evenly balanced between the four categories. But does this really mean that we've attracted more people in the last two years than in all earlier years combined, or that an awful lot of

Re: Linux and D wallpaper :)

2012-03-28 Thread dnewbie
On Thursday, 29 March 2012 at 04:48:39 UTC, F i L wrote: http://reign-studios.com/d-wallpapers/LinuxAndD.png Very nice. Thanks!!

Re: D web apps: cgi.d now supports scgi

2012-03-25 Thread dnewbie
Thanks for doing this (and the other misc stuff) I wonder how can I generate unique, non predictable session ids.

Re: D web apps: cgi.d now supports scgi

2012-03-25 Thread dnewbie
On Sunday, 25 March 2012 at 19:22:02 UTC, Adam D. Ruppe wrote: On Sunday, 25 March 2012 at 19:14:32 UTC, dnewbie wrote: I wonder how can I generate unique, non predictable session ids. In web.d, there's a Session class that generates them with std.random.uniform. I suspect this isn't the best

Re: D web apps: cgi.d now supports scgi

2012-03-25 Thread dnewbie
I can't compile web.d Notice: As of Phobos 2.055, std.date and std.dateparse have been deprecated. They will be removed in February 2012. Please use std.datetime instead. arsd\web.d(2671): Error: function std.date.dateFromTime is deprecated arsd\web.d(2672): Error: function

Poll of the week - How long have you been in the D world?

2012-03-25 Thread dnewbie
Just out of curiosity, is D attracting new users? Are the old users running? Place your vote here http://www.easypolls.net/poll.html?p=4f6fb7e5e4b04f389e5eb66f

Re: Mono-D@GSoC - Mentor needed

2012-03-23 Thread dnewbie
On Tuesday, 20 March 2012 at 22:52:13 UTC, James Miller wrote: A bit of a side note, but is there any way that some of this work could be made more standalone, even if somebody else has to take up the work to finish it and make it truly standalone. I personally can't stand fully integrated

Re: StackOverflow Chat Room

2012-03-21 Thread dnewbie
I need 20 reputation. Please help me. On Wed, Mar 21, 2012, at 12:23 PM, Robik wrote: On Sunday, 18 March 2012 at 23:13:47 UTC, James Miller wrote: Hey guys, I made a StackOverflow chat room. You don't have to use it or anything, but at least it exists now. Its called Dlang,

Re: Converting C .h Files to D Modules

2012-03-20 Thread dnewbie
On Wednesday, 21 March 2012 at 01:09:58 UTC, Andrej Mitrovic wrote: On 3/21/12, Pedro Lacerda kanvua...@gmail.com wrote: Ouch, void* is the same in both languages, sorry. I addressed a new problem: typedef struct SomeFunctions { void *(*funcA)(char*, size_t); void *(*funcB)(void); }

mysql tool

2012-03-17 Thread dnewbie
Hi D friends. I'd like to share with you a little tool. It allows you to execute SQL statements in your MySQL database. It displays the data in a nice data grid widget written by David Hillard. I hope you like it. Link http://my.opera.com/run3/blog/2012/03/17/mysql-tool

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread dnewbie
Zach the Mystic - I can't compile it. dmd\binExp.d(115): Error: function dmd.binExp.AndAndExp.isBit of type bool() overrides but is no t covariant with dmd.expression.Expression.isBit of type int() dmd\binExp.d(115): Error: function dmd.binExp.AndAndExp.isBit does not override any function On

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread dnewbie
It's working.. Pretty cool :) On Thu, Mar 8, 2012, at 12:07 AM, Zach the Mystic wrote: On Wednesday, 7 March 2012 at 21:15:46 UTC, dnewbie wrote: Zach the Mystic - I can't compile it. Still not working?

htod - const

2012-03-06 Thread dnewbie
I have this file tmp.h: const char *getvalue(const char *key); I run htod tmp.h and I've got the output --- /* Converted to D from tmp.h by htod */ module tmp; //C const char *getvalue(const char *key); extern (C): char * getvalue(char *key);

Re: htod - const

2012-03-06 Thread dnewbie
Thanks Trass3r. On Tue, Mar 6, 2012, at 05:50 PM, Trass3r wrote: Why is 'const' removed? cause htod sucks. D1 didn't have const and htod wasn't updated for ages.

Re: std.socket with GDC

2012-02-25 Thread DNewbie
On Sat, Feb 25, 2012, at 10:38 PM, Mars wrote: On Saturday, 25 February 2012 at 18:27:29 UTC, Vladimir Panteleev wrote: On Friday, 24 February 2012 at 19:15:26 UTC, Mars wrote: Hello everybody. When trying to compile a program using GDC (Windows), which includes an import

Re: Examples of Windows services in D?

2012-02-22 Thread DNewbie
Here is a simple service in D http://my.opera.com/run3/blog/2012/02/23/windows-services-in-d It's basically c translated to d. On Tue, Feb 21, 2012, at 03:08 PM, Graham Fawcett wrote: Hi folks, I've got a Windows service that I'd like to write in D, if possible. I see that Andrej Mitrovic

Re: Socket: The connection was reset

2012-02-10 Thread DNewbie
? == Auszug aus DNewbie (r...@myopera.com)'s Artikel Try this while(true) { Socket cs = s.accept(); cs.receive(new byte[1024]); cs.sendTo(HTTP/1.1 200 OK\r\nContent-Length: 11\r\n\r\nHello World); cs.close(); } On Thu, Feb 9, 2012, at 07

Re: Socket: The connection was reset

2012-02-09 Thread DNewbie
Try this while(true) { Socket cs = s.accept(); cs.receive(new byte[1024]); cs.sendTo(HTTP/1.1 200 OK\r\nContent-Length: 11\r\n\r\nHello World); cs.close(); } On Thu, Feb 9, 2012, at 07:31 PM, Nrgyzer wrote: Hi

Re: i18n

2012-02-03 Thread DNewbie
On Fri, Feb 3, 2012, at 09:48 PM, Trass3r wrote: Thanks a lot, So I just need to detect user locale using How to do that? You can always use the functions you would use in C. You can see your language id in this page:

Re: MySQL

2012-01-22 Thread DNewbie
On Sun, Jan 22, 2012, at 12:11 AM, Ali Çehreli wrote: On 01/21/2012 06:28 PM, Mars wrote: On Sunday, 22 January 2012 at 00:50:28 UTC, Ali Çehreli wrote: Are you also including the library on the command line with -L-l? For example, for ncurses: dmd ... -L-lncurses ... And if

Re: MySQL

2012-01-22 Thread DNewbie
On Sun, Jan 22, 2012, at 01:13 PM, Mars wrote: On Sunday, 22 January 2012 at 10:21:29 UTC, DNewbie wrote: I've took a look at MySQL headers, the functions use stdcall, but in libmysql.dll exports table they are not decorated. This means...? Shouldn't it at least compile

Re: MySQL

2012-01-22 Thread DNewbie
On Sun, Jan 22, 2012, at 11:02 PM, DNewbie wrote: On Sun, Jan 22, 2012, at 01:13 PM, Mars wrote: On Sunday, 22 January 2012 at 10:21:29 UTC, DNewbie wrote: I've took a look at MySQL headers, the functions use stdcall, but in libmysql.dll exports table they are not decorated

Re: MySQL

2012-01-21 Thread DNewbie
Please check whether your MySQL lib is 64 bit and your app is 32 bit. On Sat, Jan 21, 2012, at 10:38 PM, Mars wrote: Hello everyone. I've been trying to use MySQL in an application on Windows, but I always get Symbol Undefined _mysql_init I've put the lib in the correct folder, so I don't

Re: OOP Windows

2012-01-16 Thread DNewbie
On Mon, Jan 16, 2012, at 05:59 PM, Andrej Mitrovic wrote: On 1/16/12, Robert Clipsham rob...@octarineparrot.com wrote: https://github.com/AndrejMitrovic/DWinProgramming I think he's looking for an OOP approach, that code is basically C translated to D. There are some OOP libraries he can

OOP Windows

2012-01-15 Thread DNewbie
Is there a D version of this type of tutorial? https://www.relisoft.com/win32/index.htm

  1   2   >