slice assignment doesn't work when converter is present

2023-11-20 Thread veksha
thank you! bug reported:

slice assignment doesn't work when converter is present

2023-11-20 Thread janAkali
Looks like a bug to me, please report it on github. You can also add code example below. > in this small example i don't even use strings Converters enable implicit conversion. And combined with templates (used in the system library) it causes unexpected results: template inspect(

slice assignment doesn't work when converter is present

2023-11-19 Thread veksha
Hi. Can someone tell me what is happening here. the following code works, but when i uncomment converter (which is needed for another task) code does not compile > > #converter toString(a: seq[byte]): string {.inline.} = cast[ptr > string](a.addr)[] > > var query = @[byte 1,2,3] >