Re: Error

2022-10-31 Thread Johann via Digitalmars-d-learn
```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

Re: Conversion from ANSI 1252 to unicode

2022-04-08 Thread Johann via Digitalmars-d-learn
Aaa... how could this escape my attention. Thanks a lot.

Conversion from ANSI 1252 to unicode

2022-04-07 Thread Johann via Digitalmars-d-learn
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?

2018-01-31 Thread Johann via Digitalmars-d-learn
$ 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

Re: [dlang library documentation] Why there are dlang.org/library and dlang.org/phobos?

2018-01-22 Thread Johann via Digitalmars-d-learn
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.

[dlang library documentation] Why there are dlang.org/library and dlang.org/phobos?

2018-01-22 Thread Johann via Digitalmars-d-learn
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

Working Windows GUI library - no console Window

2015-11-06 Thread johann via Digitalmars-d-learn
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

Re: Working Windows GUI library - no console Window

2015-11-06 Thread johann via Digitalmars-d-learn
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,

RandomAccessRange / Mobile Elements

2014-05-27 Thread Johann via Digitalmars-d-learn
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