Re: Is HibernateD dead?

2018-05-08 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 7 May 2018 at 17:27:17 UTC, Jesse Phillips wrote: You should get a hold of Vadim Lopatin and see if he would give you commit rights to the main repo. There was a great article I can't find by someone who would add contributors if they made good pull requests. It helped to keep

Re: Is HibernateD dead?

2018-05-06 Thread Vadim Lopatin via Digitalmars-d-learn
On Thursday, 3 May 2018 at 20:49:35 UTC, Matthias Klumpp wrote: On Thursday, 3 May 2018 at 18:52:34 UTC, singingbush wrote: On Thursday, 3 May 2018 at 10:27:47 UTC, Pasqui23 wrote: Last commit on https://github.com/buggins/hibernated was almost a year ago So what is the status of HibernateD?Sh

Re: Mirroring a drawable buf in DLangUI?

2017-11-23 Thread Vadim Lopatin via Digitalmars-d-learn
On Tuesday, 21 November 2017 at 13:45:31 UTC, Dukc wrote: I am using the DrawRescaled method of DrawBuf[1] of DLangUI To draw a PNG image to a CanvasWidget[2] subclass. It has a minor issue of the box bounds showing in area that shoud be transparent but otherwise works well. My question is, d

Re: Access Violation when passing the result of a C function directly to a D function?

2017-09-15 Thread Vadim Lopatin via Digitalmars-d-learn
On Friday, 15 September 2017 at 04:01:13 UTC, Timothy Foster wrote: I'm compiling on Windows 7 x64, DMD32 D Compiler v2.075.1 and I'm using Derelict Fmod to handle audio in my application. Every Fmod function returns an int telling me if the function ran okay, or if there was an error. I've wri

Re: Problems with the DLangUI TreeWidget

2017-09-12 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 11 September 2017 at 17:57:14 UTC, pezi_pink wrote: On Monday, 11 September 2017 at 09:00:36 UTC, Vadim Lopatin Fixed in v0.9.121 See example1 / TreeWidget for sample of adding / removing of items. Fantasic! Thank you very much :) Feel free to submit issues on https

Re: betterC and struct destructors

2017-09-11 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 11 September 2017 at 10:18:41 UTC, Oleg B wrote: Hello. I try using destructor in betterC code and it's work if outer function doesn't return value (void). Code in `scope (exit)` works as same (if func is void all is ok). In documentation I found https://dlang.org/spec/betterc.html

Re: Problems with the DLangUI TreeWidget

2017-09-11 Thread Vadim Lopatin via Digitalmars-d-learn
On Friday, 8 September 2017 at 15:39:21 UTC, pezi_pink wrote: On Friday, 8 September 2017 at 15:08:27 UTC, Vadim Lopatin wrote: On Friday, 8 September 2017 at 12:10:23 UTC, pezi_pink wrote: [...] It's known issue: https://github.com/buggins/dlangui/issues/278 Not sure if there i

Re: Problems with the DLangUI TreeWidget

2017-09-08 Thread Vadim Lopatin via Digitalmars-d-learn
On Friday, 8 September 2017 at 15:39:21 UTC, pezi_pink wrote: On Friday, 8 September 2017 at 15:08:27 UTC, Vadim Lopatin wrote: On Friday, 8 September 2017 at 12:10:23 UTC, pezi_pink wrote: [...] It's known issue: https://github.com/buggins/dlangui/issues/278 Not sure if there i

Re: DLang IDE [RU]

2017-09-08 Thread Vadim Lopatin via Digitalmars-d-learn
On Thursday, 7 September 2017 at 12:24:40 UTC, TM wrote: Это понятно, что у Java своя организационная специфика, в принципе если в диалоге создание файла минимизировать количество кликов, то есть сразу вводишь имя файла с клавиатуры и кнопка создания будет реагировать на Entrer (а не Ctrl+N),

Re: Problems with the DLangUI TreeWidget

2017-09-08 Thread Vadim Lopatin via Digitalmars-d-learn
On Friday, 8 September 2017 at 12:10:23 UTC, pezi_pink wrote: I am having some seemingly basic problems using the TreeWidget from DLangUI on Windows. I posted on the project's gitter channel some time ago but did not get any response. All I am trying to do is add children to the tree's nodes

Re: DLang IDE [RU]

2017-09-07 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 6 September 2017 at 13:05:29 UTC, Vadim Lopatin wrote: On Tuesday, 5 September 2017 at 15:40:06 UTC, TM wrote: 1. Добавить возможность выбора размера шрифта для области редактирования. Я крайне редко меняю подобные настройки в IDE, но в данном случае дефолтный шрифт оказался

Re: DLang IDE [RU]

2017-09-07 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 6 September 2017 at 13:20:08 UTC, Vadim Lopatin wrote: On Tuesday, 5 September 2017 at 15:40:06 UTC, TM wrote: 2. В области Workspace Explorer на одном уровне иерархии модули и пакеты сортируются по алфавиту, но "вперемешку" с друг другом, в отличие от того же Note

Re: DLang IDE [RU]

2017-09-07 Thread Vadim Lopatin via Digitalmars-d-learn
On Thursday, 7 September 2017 at 07:04:11 UTC, Suliman wrote: А можно сделать как-то так, чтобы автокомплит работал сразу? Как в студии. То есть бы не приходилось ctrl+пробел нажимать. Issue submitted: https://github.com/buggins/dlangide/issues/253

Re: DLang IDE [RU]

2017-09-07 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 6 September 2017 at 17:36:53 UTC, TM wrote: On Wednesday, 6 September 2017 at 14:33:18 UTC, Vadim Lopatin wrote: On Wednesday, 6 September 2017 at 14:06:56 UTC, TM wrote: On Wednesday, 6 September 2017 at 13:07:04 UTC, Vadim Lopatin wrote: File / new для добавления пакетов

Re: DLang IDE [RU]

2017-09-06 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 6 September 2017 at 14:33:18 UTC, Vadim Lopatin wrote: On Wednesday, 6 September 2017 at 14:06:56 UTC, TM wrote: On Wednesday, 6 September 2017 at 13:07:04 UTC, Vadim Lopatin wrote: File / new для добавления пакетов/модулей не пойдет? Удалять также можно. Перемещать - нельзя

Re: DLang IDE [RU]

2017-09-06 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 6 September 2017 at 14:06:56 UTC, TM wrote: On Wednesday, 6 September 2017 at 13:07:04 UTC, Vadim Lopatin wrote: File / new для добавления пакетов/модулей не пойдет? Удалять также можно. Перемещать - нельзя. File / new создает модуль. А как создавать пакет? New Source File

Re: DLang IDE [RU]

2017-09-06 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 6 September 2017 at 14:06:56 UTC, TM wrote: On Wednesday, 6 September 2017 at 13:07:04 UTC, Vadim Lopatin wrote: File / new для добавления пакетов/модулей не пойдет? Удалять также можно. Перемещать - нельзя. File / new создает модуль. А как создавать пакет? New Source File

Re: DLang IDE [RU]

2017-09-06 Thread Vadim Lopatin via Digitalmars-d-learn
On Tuesday, 5 September 2017 at 15:40:06 UTC, TM wrote: 1. Невозможно собрать как IDE, так и любой пример из DlangUI, если в профиле пользователя windows используются символы кириллицы. Компиляция через DMD/LDC падает на DlangUI с: module exception is in file 'C:\Users\русский_юзернейм\AppData\

Re: DLang IDE [RU]

2017-09-06 Thread Vadim Lopatin via Digitalmars-d-learn
On Tuesday, 5 September 2017 at 15:40:06 UTC, TM wrote: 2. Под англоязычной учетной записью windows последняя удачная сборка IDE была 0.7.45 или 0.7.46, дальше DMD начал падать с "Out of memory", LDC также начал выдавать ошибку. Проблема также похоже во "внутренностях" DlangUi, так как примеры

Re: DLang IDE [RU]

2017-09-06 Thread Vadim Lopatin via Digitalmars-d-learn
On Tuesday, 5 September 2017 at 15:40:06 UTC, TM wrote: 3. Очень непривычное поведение редактора при копипасте строки. Обычная комбинация: Home, Shift+End (выделяется вся строка), Ctrl+C, End (для снятия выделения), Enter (для перехода на другую строку), Ctrl+V оканчивается тем, что End после C

Re: DLang IDE [RU]

2017-09-06 Thread Vadim Lopatin via Digitalmars-d-learn
On Tuesday, 5 September 2017 at 15:40:06 UTC, TM wrote: 3. Баг непосредственно DLang IDE: при создании "главного" файла пакета package.d в новом файле не корректно прописывается строчка module, создается строка вида "module mypackage.package", когда должна быть "module mypackage" Issue submit

Re: DLang IDE [RU]

2017-09-06 Thread Vadim Lopatin via Digitalmars-d-learn
On Tuesday, 5 September 2017 at 15:40:06 UTC, TM wrote: 2. В области Workspace Explorer на одном уровне иерархии модули и пакеты сортируются по алфавиту, но "вперемешку" с друг другом, в отличие от того же Notepad++, где сначала по алфавиту сортируются пакеты, а потом модули. Понимая, что такой

Re: DLang IDE [RU]

2017-09-06 Thread Vadim Lopatin via Digitalmars-d-learn
On Tuesday, 5 September 2017 at 15:40:06 UTC, TM wrote: 1. Добавить возможность выбора размера шрифта для области редактирования. Я крайне редко меняю подобные настройки в IDE, но в данном случае дефолтный шрифт оказался откровенно мелковат (возможно под Linux ситуация несколько иная), пришлось

Re: DLang IDE [RU]

2017-09-06 Thread Vadim Lopatin via Digitalmars-d-learn
On Tuesday, 5 September 2017 at 16:18:25 UTC, TM wrote: Из более серьезных улучшений, я бы предложил возможность в Workspace Explorer добавлять пакеты, переименовывать пакеты / модули, перемещать пакеты / модули и удалять пакеты / модули. Но это, очевидно уже будет требовать некоторых усилий на

Re: DCD as a library - stops working after some thread is created.

2017-08-11 Thread Vadim Lopatin via Digitalmars-d-learn
On Friday, 11 August 2017 at 08:17:32 UTC, Vadim Lopatin wrote: I'm using DCD as a library in DlangIDE. All DCD calls are made from separate thread. DCD works ok until some thread is created (e.g. to invoke DUB for building). /// call this function after DCD ModuleCache is instantiat

DCD as a library - stops working after some thread is created.

2017-08-11 Thread Vadim Lopatin via Digitalmars-d-learn
I'm using DCD as a library in DlangIDE. All DCD calls are made from separate thread. DCD works ok until some thread is created (e.g. to invoke DUB for building). After this operation DCD stops working correctly and can locate symbols only from current source file. Root cause: If some another t

Difference between dstring and string format specifiers support. Bug?

2016-11-09 Thread Vadim Lopatin via Digitalmars-d-learn
Looks like bug. dchar[] and wchar[] format strings support less specifiers than char[] import std.format; string test1 = "%02d".format(1); // works assert(test1 == "01"); dstring test2 = "%d"d.format(1); // works assert(test2 == "1"d); wstring tes

Re: Difference between dstring and string format specifiers support. Bug?

2016-11-09 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 9 November 2016 at 08:21:53 UTC, Vadim Lopatin wrote: Looks like bug. dchar[] and wchar[] format strings support less specifiers than char[] import std.format; string test1 = "%02d".format(1); // works assert(test1 == "01");

Re: How to get sqlite3.lib x64?

2016-10-24 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 24 October 2016 at 05:43:00 UTC, Andre Pany wrote: Hi, I try to get sqlite3.lib for 64 Bit windows os. I tried implib with the def file and the 64 Bit dll: implib sqlite3_implib.lib sqlite3.def /system -> App crash (Windows 10) With the dll file defined: implib sqlite3_implib.lib sq

Re: SQLite

2016-10-21 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 19 October 2016 at 16:01:37 UTC, Alfred Newman wrote: Hello, I am trying to handle a SQLite3 table with D. During my researchs, I discovered the lib https://dlang.org/phobos/etc_c_sqlite3.html. However, for any reason, there is no code snippets or sample codes available there.

Re: DLang IDE for macOS

2016-10-07 Thread Vadim Lopatin via Digitalmars-d-learn
On Thursday, 6 October 2016 at 09:31:43 UTC, Alexander Milushev wrote: Hi all, Is there any good IDE for DLang for macOS? I have used Xamarin Studio with D Language Addin but currently it does not supported by developer. Also I have tried Idea with D Language plugin but autocomplete did not w

Re: Basic sounds' playing

2016-10-07 Thread Vadim Lopatin via Digitalmars-d-learn
On Saturday, 8 October 2016 at 01:00:20 UTC, Cleverson Casarin Uliana wrote: Hello all, starting to learn d, apreciating it so far. I'd like to play/stop wave sound files assynchronously on Windows. Can I get a module for that by installing a particular compiler, or is there any package for it

Re: What is the best way to store bitarray (blob) for pasting in database?

2016-09-21 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 6 April 2016 at 12:56:39 UTC, Suliman wrote: I have next task. There is PostgreSQL DB. With field like: id, mydata. mydata - is binary blob. It can be 10MB or even more. I need load all data from PostgreSQL to SQLLite. I decided ti create struct that and fill it with data. And th

Re: PostgreSQL. Unknown parameter of configuration : "autocommit"

2016-09-21 Thread Vadim Lopatin via Digitalmars-d-learn
On Tuesday, 5 April 2016 at 07:53:20 UTC, Suliman wrote: Is there anybody who have success connect to PostgreSQL with ddbc? I am getting next error: https://github.com/buggins/ddbc/issues/22 Fixed.

Re: Error: no property 'select' for type 'ddbc.core.Statement'

2016-09-21 Thread Vadim Lopatin via Digitalmars-d-learn
On Sunday, 31 January 2016 at 09:15:04 UTC, Suliman wrote: I hope that here I will get answer faster then on https://github.com/buggins/ddbc/issues/18 I am using ddbc diver for access to mysql. I need to return result of request to struct. My code is next: import std.stdio; import ddbc.all;

Re: D, GTK, Qt, wx,…

2016-05-30 Thread Vadim Lopatin via Digitalmars-d-learn
On Sunday, 29 May 2016 at 11:03:36 UTC, Russel Winder wrote: Is there even a wxD? Or perhaps there is an alternative that fits the bill of being production ready now, and either gives the same UI across all platforms or provides a platform UI with no change of source code, just a recompilatio

Re: Benchmark Dlang vs Node vs Ruby

2016-05-27 Thread Vadim Lopatin via Digitalmars-d-learn
On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote: Hi guys, In my journey of learning about D I tried to benchmark D with Vibe.d vs node with express and Ruby with Sinatra. And the results are pretty surprising. I have to admit that I though D was more faster than that. How is this even p

Re: Game Development Using D

2016-05-22 Thread Vadim Lopatin via Digitalmars-d-learn
On Saturday, 21 May 2016 at 15:53:18 UTC, David wrote: Hi, I want to try to create a game using D. I'm a complete newbie though (other than having C/C++ experience). Where would I start? Does D have an openGL binding? I am assuming I'll need to leverage a good amount C APIs? Any list of these

Re: import("dir/file") does not work

2016-05-18 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 18 May 2016 at 12:20:14 UTC, Andrew Chamberlain wrote: Thank you! It looks like it's not yet included into recent DMD beta available for download. in nightly perhaps ? https://dlang.org/download.html#dmd-nightly the latest beta is always for a "point" release so it only inclu

Re: import("dir/file") does not work

2016-05-18 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 18 May 2016 at 06:47:08 UTC, Atila Neves wrote: On Wednesday, 18 May 2016 at 05:11:51 UTC, Vadim Lopatin wrote: Hello, Is it intended that import of file as array does not work if path is specified for import file name? import("dir/file.ext"); // does not work import

import("dir/file") does not work

2016-05-17 Thread Vadim Lopatin via Digitalmars-d-learn
path (e.g. -Jviews) and import any file from nested directories just by providing relative path from one of -J dirs. (checked on latest DMD under Windows; replacing / with \\ does not help) Best regards, Vadim

Re: DlangIDE Themes

2016-05-12 Thread Vadim Lopatin via Digitalmars-d-learn
tory must be accessible from application. The only problem should be list of themes in UI settings. AFAIR, resources from directory should have higher priority than embedded ones. So for testing, you can rename theme to standard name. Best regards, Vadim

Re: Show window maximized in DlangUI

2016-05-05 Thread Vadim Lopatin via Digitalmars-d-learn
On Thursday, 5 May 2016 at 07:53:43 UTC, default0 wrote: Hi I'm writing a D Desktop application using DlangUI. I want the window it creates to start maximized (but not Fullscreen) and could not find any APIs in the documentation that seem to do this. Does anyone know how to do this? No suc

Re: DlangUI FileDialog not working

2016-05-03 Thread Vadim Lopatin via Digitalmars-d-learn
On Tuesday, 3 May 2016 at 06:14:25 UTC, stunaep wrote: FileDialog is showing a blank white window for me. Only tested on windows 7 so far, but if I run dmledit, the filedialog on there works fine. It's weird because I am using almost exactly the same code. Try fetch recent dlangui version (du

Re: DlangUI MouseEvent mouse delta

2016-04-27 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 27 April 2016 at 00:15:46 UTC, stunaep wrote: I am currently handling it like this: current = e.pos(); xdelta = current.x - previous.x; ydelta = current.y - previous.y; previous = current; I'm just wondering if there is a built in solution that I missed. There is only informati

Re: DlangUI translations

2016-04-25 Thread Vadim Lopatin via Digitalmars-d-learn
On Sunday, 24 April 2016 at 23:32:38 UTC, stunaep wrote: On Sunday, 24 April 2016 at 04:49:36 UTC, thedeemon wrote: On Saturday, 23 April 2016 at 15:44:22 UTC, stunaep wrote: I am wondering how to use other languages and how to NOT use other languages. Did you see example1 from examples folde

Re: Using D in Android App

2016-04-21 Thread Vadim Lopatin via Digitalmars-d-learn
On Saturday, 16 April 2016 at 04:04:24 UTC, Justice wrote: Is it difficult to create a D business like app and connect it to android through java for the interface? I'd rather create all the complex stuff in D and either use it natively through java(I need a UI). If it is workable, can the s

Re: Dlang UI - making widget extend to the bounds of the window

2016-04-18 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 18 April 2016 at 07:06:43 UTC, Vadim Lopatin wrote: In TableLayout there is a bug #113 which prevents extending of table layout content to parent size. For other widgets FILL_PARENT should work ok. Issue #113 is fixed today in v0.8.8

Re: Dlang UI - making widget extend to the bounds of the window

2016-04-18 Thread Vadim Lopatin via Digitalmars-d-learn
On Saturday, 16 April 2016 at 11:46:09 UTC, stunaep wrote: On Saturday, 16 April 2016 at 08:20:33 UTC, stunaep wrote: On Friday, 15 April 2016 at 10:33:35 UTC, Vadim Lopatin wrote: [...] I am doing that. I think it has to do with my high dpi because I'm using a 4k monitor. If I use

Re: Dlang UI - making widget extend to the bounds of the window

2016-04-15 Thread Vadim Lopatin via Digitalmars-d-learn
On Friday, 15 April 2016 at 00:58:58 UTC, stunaep wrote: I'm trying to make a gui program with dlangui, but no matter what I do, I cannot get widgets to fill the whole window. The window is resizable so I cannot just set the widths to static numbers. No layoutWidth and layoutHeight set: http:

Re: Linking a shared library in dub

2016-03-30 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 30 March 2016 at 12:19:34 UTC, maik klein wrote: I want to finally convert my project to windows. That means that I want to build it on windows and linux. The problem is that I have one external c library 'glfw'. I thought that I would just link with it explicitly but actually I

Re: How would you implement this in D? (signals & slots)

2016-02-03 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 1 February 2016 at 21:40:45 UTC, Enjoys Math wrote: module signals_and_slots; How do you implement this template called like: void onColorChange(in Color) { // do something with color } auto slots = Slots!(void delegate(in Color), Color); slots.connect(&onColorChange); auto color =

Re: Using libraries for (Postgre)SQL for bilingual (C++ and D) project

2016-01-10 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 11 January 2016 at 07:29:02 UTC, Eliatto wrote: Hello! I have a project, which consists of 2 parts: web part (based on vibe.d) and core part (C++/Qt 5.5.x). Core will be used in a shared object (c-style exported functions). Both parts must interact with PostgreSQL. Core dynamic libra

Re: Graphics/font/platform backends with common interfaces?

2015-12-25 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 23 December 2015 at 19:22:01 UTC, Taylor Hillegeist wrote: So I have seen alot of projects that need the same sort of stuff. graphics libraries gui libraries game libraries ploting libaries they would all benefit from a backend solution with a common interface for color fonts

Re: How to check if result of request to DB is empty?

2015-12-12 Thread Vadim Lopatin via Digitalmars-d-learn
On Saturday, 12 December 2015 at 12:06:21 UTC, Suliman wrote: On Saturday, 12 December 2015 at 11:53:51 UTC, Suliman wrote: On Saturday, 12 December 2015 at 11:31:18 UTC, Suliman wrote: Oh sorry! I used wrong host! All ok! Yes, there was issue with host name, but it's do not solve problem. S

Re: Any D IDE on Mac OSX with debugging support?

2015-11-16 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 16 November 2015 at 08:15:36 UTC, Jacob Carlborg wrote: On 2015-11-16 08:48, Rikki Cattermole wrote: On recent versions of OSX, Apple has by default made it so that all applications must be signed by default. You can disable this behavior through system settings and security. I sus

Re: Any D IDE on Mac OSX with debugging support?

2015-11-16 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 16 November 2015 at 07:48:31 UTC, Rikki Cattermole wrote: On 16/11/15 7:45 PM, Vadim Lopatin wrote: Hello, Is there any IDE which allows debugging D apps on OSX? I'm trying Mono-D, but getting error "Debugger operation failed A syntax error in expression, near &#

Re: Any D IDE on Mac OSX with debugging support?

2015-11-16 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 16 November 2015 at 07:48:31 UTC, Rikki Cattermole wrote: On 16/11/15 7:45 PM, Vadim Lopatin wrote: [...] On recent versions of OSX, Apple has by default made it so that all applications must be signed by default. You can disable this behavior through system settings and security

Any D IDE on Mac OSX with debugging support?

2015-11-15 Thread Vadim Lopatin via Digitalmars-d-learn
27;m trying to start debugging using console GDB interface - it fails with message about unsigned application. Is there any instruction how to get GDB working on OSX? Code completion and symbol lookups neither do not work on Mono-D / OSX. Does anyone managed to get it working? Best regards, Vadim

Re: OSX Foundation framework D binding

2015-11-11 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 11 November 2015 at 16:04:44 UTC, Jacob Carlborg wrote: On 2015-11-11 17:02, Jacob Carlborg wrote: I would recommend creating new bindings which use the new Objective-C interoperability feature that was added in the latest release (2.069.0). You could use DStep [1] to generate

Re: OSX Foundation framework D binding

2015-11-11 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 11 November 2015 at 16:04:44 UTC, Jacob Carlborg wrote: On 2015-11-11 17:02, Jacob Carlborg wrote: I would recommend creating new bindings which use the new Objective-C interoperability feature that was added in the latest release (2.069.0). You could use DStep [1] to generate

Re: OSX Foundation framework D binding

2015-11-11 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 11 November 2015 at 09:29:47 UTC, Daniel Kozak wrote: V Wed, 11 Nov 2015 06:17:00 + Vadim Lopatin via Digitalmars-d-learn napsáno: Hello, I'm working on native Cocoa backend for DlangUI GUI library under OSX. Is there any ready to use bindings for easy accessing

OSX Foundation framework D binding

2015-11-10 Thread Vadim Lopatin via Digitalmars-d-learn
Hello, I'm working on native Cocoa backend for DlangUI GUI library under OSX. Is there any ready to use bindings for easy accessing Cocoa API? Probably, there is some HelloWorld program which creates window and draws something? Best regards, Vadim

Re: ddbc: MySQL/MariaDB: Access Violation

2015-05-20 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 18 May 2015 at 18:54:20 UTC, Suliman wrote: GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; p.s. this command return my: "Affected rows: 0 " Do you see some stack trace on crash? No. I checked on 2 PC and it's not look like my issue, because

Re: ddbc: MySQL/MariaDB: Access Violation

2015-05-18 Thread Vadim Lopatin via Digitalmars-d-learn
On Sunday, 17 May 2015 at 10:24:43 UTC, Suliman wrote: I am using this driver for access to MariaDB http://code.dlang.org/packages/ddbc The problem that it's work fine when it's used from desktop App, but when I try to run it's from vibed app i get "Access Violation". In my.ini I added string

Re: Binding to C

2015-05-12 Thread Vadim Lopatin via Digitalmars-d-learn
/wiki.dlang.org/Converting_C_.h_Files_to_D_Modules Best regards, Vadim

Re: Static function template

2015-05-07 Thread Vadim Lopatin via Digitalmars-d-learn
On Thursday, 7 May 2015 at 10:19:44 UTC, Lemonfiend wrote: Is it not possible to have a static function template with the same name as the non-static version? struct S { int i; auto foo(T)(int j) { i=j; } static auto foo(T)(int j) { S s; s.foo!T(j);

Re: Need help with DLANGUI

2015-03-24 Thread Vadim Lopatin via Digitalmars-d-learn
On Tuesday, 24 March 2015 at 13:31:06 UTC, Eric wrote: BTW, why do you need FreeImage to create image? Isn't it just possible inside dlangui? This is basically my question. Is there a drawing engine that can draw lines, circles, and shapes as well as single pixels? -Eric Hello, I've imp

Re: Need help with DLANGUI

2015-03-24 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 23 February 2015 at 19:41:30 UTC, Eric wrote: I have been trying out dlanui, and I am able to create an image with FreeImage and display it with an ImageWidget. However this requires that I write the image out to disk, and then load it again to display it. Is there any way I can up

Re: DlangUI EditLine question

2015-03-16 Thread Vadim Lopatin via Digitalmars-d-learn
On Sunday, 15 March 2015 at 16:21:21 UTC, Kyle wrote: I have a variable, x, which I want to update when the content of a DlangUI EditLine is modified. I tried making this work with the "onContentChange" method listed in the API documentation, but dmd told me it's not there. I've got this worki

Re: Invoking MAGO debugger

2015-03-01 Thread Vadim Lopatin via Digitalmars-d-learn
On Thursday, 26 February 2015 at 18:37:17 UTC, michaelc37 wrote: On Thursday, 26 February 2015 at 10:20:31 UTC, Vadim Lopatin wrote: Hello! I'm trying to integrate MAGO into DlangIDE. I can easy create instance of MAGO DebugEngine, but having problems with obtaining of IDebugPort whi

Invoking MAGO debugger

2015-02-26 Thread Vadim Lopatin via Digitalmars-d-learn
ow to do it? Normally, it's being created by VisualStudio AFAIK. Best regards, Vadim

DDOX question

2015-01-08 Thread Vadim Lopatin via Digitalmars-d-learn
ibe.d documentation site. Could someone point on example or docs wich can help me? Best regards, Vadim

Customization of DUB build=DDOX output

2014-12-16 Thread Vadim Lopatin via Digitalmars-d-learn
loads, screenshots, github... Is it possible to do it using dub+ddox build? Best regards, Vadim

Re: mutable reference to const object

2014-03-06 Thread Vadim Lopatin
On Thursday, 6 March 2014 at 17:47:34 UTC, bearophile wrote: There was a very long discussion on this. I think the short answer is to keep the syntax and semantics composed of a sufficiently low number of parts (in D you don't have syntax to tell apart objects from their references). Thank yo

Re: mutable reference to const object

2014-03-06 Thread Vadim Lopatin
On Thursday, 6 March 2014 at 15:54:13 UTC, FreeSlave wrote: You probably need Rebindable template from std.typecons. Thank you! Rebindable does exactly what I need. I'm just curious why there is no some syntax to describe the same. E.g. const(Foo) foo; // mutable ref to const object cons

Re: mutable reference to const object

2014-03-06 Thread Vadim Lopatin
On Thursday, 6 March 2014 at 15:59:12 UTC, bearophile wrote: Vadim Lopatin: In C++, following code works as I'm expecting: Different language, different (hopefully better) semantics. In D const and immutable are transitive, this means they make const/immutable the whole sub-tree of

mutable reference to const object

2014-03-06 Thread Vadim Lopatin
Hello, Is there a possibility to define mutable reference to const object? I need variable which can be used to iterate through const objects. But it seems like const(Foo)p makes constant reference to constant object instead of mutable reference to const object. class Bar { } unittest { B

D runtime Garbage Collector details

2012-02-23 Thread Vadim
I am looking for the details on D Garbage Collection implementation. I will much appreciate if someone suggests the answers or give some links to existing documentation clarifying the following points: 1. Is it Mark-n-Sweep or copy or generational collector or simple reference counting? Or an