Re: Error
```d writeln (getSize(rom)) ``` reports 478 bytes but since you work with ushorts (why? as far as I can see, this is a 8 bit machine) you convert the read(rom) into ushorts, which is only half in size: ```d writeln (cast(ushort[])read(rom)); ``` gives you 478/2 = 239 bytes ```d this.memory[memStart..memStart + romSize] = cast(ushort[])read(rom); ``` fails because both ranges have different sizes.
Re: Conversion from ANSI 1252 to unicode
Aaa... how could this escape my attention. Thanks a lot.
Conversion from ANSI 1252 to unicode
Hi all, anybody knows if there are functions (preferably) in Phobos, that translate from unicode to other encodings and vice versa? Johann
what is local package map(local-packages.json) for dub while doing building?
$ dub build -b release -v Using dub registry url 'https://code.dlang.org/' Refreshing local packages (refresh existing: true)... Looking for local package map at /var/lib/dub/packages/local-packages.json Looking for local package map at /home/john/.dub/packages/local-packages.json Refreshing local packages (refresh existing: false)... Looking for local package map at /var/lib/dub/packages/local-packages.json Looking for local package map at /home/john/.dub/packages/local-packages.json Found dependency gtk-d 3.7.3 Found dependency gtk-d:sv 3.7.3 Found dependency gtk-d:gtkd 3.7.3 Found dependency gtk-d:gstreamer 3.7.3 Found dependency gtk-d:peas 3.7.3 Found dependency gtk-d:vte 3.7.3 Refreshing local packages (refresh existing: false)... Looking for local package map at /var/lib/dub/packages/local-packages.json Looking for local package map at /home/john/.dub/packages/local-packages.json Found dependency gtk-d 3.7.3 Found dependency gtk-d:sv 3.7.3 Found dependency gtk-d:gtkd 3.7.3 Found dependency gtk-d:gstreamer 3.7.3 Found dependency gtk-d:peas 3.7.3 Found dependency gtk-d:vte 3.7.3 Checking for upgrades. Using cached upgrade results... Generating using build The verbose message is confusing. Why are there so many attempts to look for local package map? And I don't even have it. How can I generate one if it's useful? What does "Checking for upgrades" do?
Re: [dlang library documentation] Why there are dlang.org/library and dlang.org/phobos?
On Monday, 22 January 2018 at 15:32:29 UTC, Adam D. Ruppe wrote: http://dpldocs.info/writef Thanks for your good work. I will file a bug report then. Not related to this thread, but is something missing from this page? Only "index" is shown on this page. http://dpldocs.info/experimental-docs/
[dlang library documentation] Why there are dlang.org/library and dlang.org/phobos?
It seems that std library documentation lives in two different directories. https://dlang.org/phobos/ https://dlang.org/library/ Maybe it's due to historical reasons. Problem is, when I search for a library function in Google, sometimes it points me to library directory, and sometimes it points me to phobos directory. In fact, when I search "dlang writef", it shows me two urls most relevant. 1. https://dlang.org/library/std/stdio/writef.html 2. https://dlang.org/phobos/std_stdio.html Clicking "format string" hyperlink on first url gives a 404 error. https://dlang.org/library/std/stdio/std_format.html#format-string The second url is correct. https://dlang.org/phobos/std_format.html#format-string Is https://dlang.org/library/ deprecated? If so, is it possible to remove it so that it won't confuse noobs like me? Or if both directories are intented to be used, I'll file a bug instead.
Re: Working Windows GUI library - no console Window
On Friday, 6 November 2015 at 21:02:59 UTC, John Chapman wrote: On Friday, 6 November 2015 at 15:52:10 UTC, johann wrote: hi, i like to use a window gui library and i think i found a working one. https://github.com/FrankLIKE/dfl2 - works with x64 the problem is, that with DMD 2.069.0, VS2015 and visualD the trick of using "-L/SUBSYSTEM:windows,6.00 -L/ENTRY:mainCRTStartup" does not suppress the console window anymore. does anybody have a solution for that problem? is anybody still working on that library? johann Same problem here. I had to remove the mainCRTStartup flag and use WinMain as my entry point. me too. i need to start a main(), since the lib will not work with a starting WinMain.
Working Windows GUI library - no console Window
hi, i like to use a window gui library and i think i found a working one. https://github.com/FrankLIKE/dfl2 - works with x64 the problem is, that with DMD 2.069.0, VS2015 and visualD the trick of using "-L/SUBSYSTEM:windows,6.00 -L/ENTRY:mainCRTStartup" does not suppress the console window anymore. does anybody have a solution for that problem? is anybody still working on that library? johann
RandomAccessRange / Mobile Elements
Hello, I read in std.range that given a random access range r , r.opIndex(n) should return a reference to the nth element. Is there a qualifier for a "read only" random access range? If not, why? I also don't really get the point of "Mobile Elements", how is "destructively reading" related to mobility, and what is it good for? Thanks.