ELIZA Chatbot Implementation From C to D Lang

user1234 user1234 at 12.de
Sat Feb 18 08:52:30 UTC 2023


On Friday, 17 February 2023 at 17:03:34 UTC, ron77 wrote:
> Hello, I succeeded in converting an ELIZA code from C to D, and 
> here are the results. although I'm sure there are better ways 
> to code it or to convert it...
>
> [...]

Among the things to do the first is to drop C-style strings, so 
that you can get rid of `strlen()` and `strcat()` for example.

Then maybe try to rewrite your for-loops as UFCS pipes.

Have fun.


More information about the Digitalmars-d-learn mailing list