amio
amio
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
My point was just that an access modifier applies to that one particular thing (type, method, whatever). If that happens to be e.g. a class, whatever access modifiers you give its methods/members only matter if that class is accessible.
261 replies
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
Keeping things as "locked down" as possible might be a good idea, yeah.
261 replies
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
if that's not what you meant, the mistake is mine
261 replies
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
I took one of the things you said to mean that you think e.g. "internal class {public method}" was inconsistent
261 replies
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
There's no room for contradiction in this, it's a conceptual misunderstanding
261 replies
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
Anything you make public or private (or whatever else) in one type assumes the consumer knows what that type is, in the first place
261 replies
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
The point is that each "level" of accessibility builds on the other. You only care about the accessibility of type members if you can see that type to begin with
261 replies
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
like... I can't imagine this works differently in C++ either
261 replies
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
the method, if it were not public, would not be visible even if you can "see" the class
261 replies
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
sure it would
261 replies
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
it does, if that "makes no sense" in a way that is actually logically nonsense
261 replies
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
how much earlier could it be than something that pops up in your IDE
261 replies
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
huh?
261 replies
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
it does if you try to use it, sure
261 replies
CC#
Created by joren on 9/16/2023 in #help
❔ Confusion as to what to default to when it comes to accessibility modifiers
if the class itself is "hidden", the accessibility of its members is irrelevant
261 replies
CC#
Created by samisaskinnyqueen on 8/17/2023 in #help
❔ How To Convert an Int to A Float
Probably not - the default should be in the docs
62 replies
CC#
Created by samisaskinnyqueen on 8/17/2023 in #help
❔ How To Convert an Int to A Float
The defaults should be pretty suitable then. hyper's int cast could too, you just need to know it truncates instead of any particular rounding logic
62 replies
CC#
Created by samisaskinnyqueen on 8/17/2023 in #help
❔ How To Convert an Int to A Float
62 replies
CC#
Created by samisaskinnyqueen on 8/17/2023 in #help
❔ How To Convert an Int to A Float
Then just Round should be fine
62 replies