Anton
Anton
CC#
Created by Shadow Wizard Money Gang on 4/29/2025 in #help
✅ Why doesn't this try catch, catch exception.
don't ignore compiler warnings
7 replies
CC#
Created by jan on 4/26/2025 in #help
Coursework analysis of quicksort results in (very) unexpected behaviour
semantically it is that
66 replies
CC#
Created by jan on 4/26/2025 in #help
Coursework analysis of quicksort results in (very) unexpected behaviour
and they are right
66 replies
CC#
Created by jan on 4/26/2025 in #help
Coursework analysis of quicksort results in (very) unexpected behaviour
they meant the right hand side
66 replies
CC#
Created by jan on 4/26/2025 in #help
Coursework analysis of quicksort results in (very) unexpected behaviour
afaik it's recognized by the compiler as a swap
66 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
you'll have to type-erase it somehow (handles, ids, pointers, etc.)
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
otherwise it probably won't link if you use it
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
the only issue is that I'd imagine that reference assembly will have to exclude the arch dependent struct
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
you might have to compile against a reference assembly, and then link it at runtime manually. I think that should be possible
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
so it probably doesn't exist, but you can't trust the robot
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
it's kind of impossible to Google, I asked chat gpt, it doesn't know of a built-in thing for this
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
you can include multiple artifacts in a nuget package fyi
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
if the user code does a word size specific build, it will reference the right dll in the nuget package
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
there might be a mechanism to allow this to happen aitomatically
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
if you want to select which dll to load at runtime based on the target arch, having compiled the app for any CPU, I don't know
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
i would imagine
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
well if the user code references that struct, they will have to also build for a set word size
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
I assume that's what most people will suggest
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
you may want to compile both versions in this case and runtime switch to select the right one
102 replies
CC#
Created by OV on 4/27/2025 in #help
Change the struct size based on current architecture
the directives are only resolved at compile time
102 replies