Jump to content

Talk:ASCII art diagram converter

From Rosetta Code

D solution won't compile

I installed the Digital Mars D compiler version 2.064.2 on my Linux box (x86_64 architecture), copied the snippet into a file, and passed it to dmd - but it failed with this error:

$ dmd ascii_struct.d
ascii_struct.d(121): Error: cannot implicitly convert expression ((line.length - 1LU) / 3LU) of type ulong to uint
ascii_struct.d(139): Error: cannot implicitly convert expression ((field.length + 1LU) / 3LU) of type ulong to uint
ascii_struct.d(188): Error: CTFE failed because of previous errors in makeStructFromDiagram

Are you sure that the code is correct?
--Smls (talk) 23:09, 30 January 2014 (UTC)


The code there only worked on 32 bit, but it is fairly easy to fix. I'll do it now.

Promote to Task

This should be promoted from a draft task to a normal task. the task is fully defined and there are several implementations. Any feedback?

--DavidFashion (talk) 15:19, 5 February 2020 (UTC)

Ascii Art?

What has this to do with ascii art? Superstitionfreeblog (talk) 01:05, 17 April 2025 (UTC)

👍 try https://github.com/cacalabs/libcaca it's good fun.--Nigel Galloway (talk) 12:20, 17 April 2025 (UTC)
I certainly know what ascii art is. This task has nothing to do with ascii art, though. That's my complaint. Superstitionfreeblog (talk) 00:10, 25 April 2025 (UTC)
I'm guessing the task author considered the "|" and "+--+" separators as "ASCII Art" but I confess I was a little surprised when I read the task description. --Tigerofdarkness (talk) 16:50, 25 April 2025 (UTC)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.