dlang.org/spec/function.html#pure-functions example

Paul phshaffer at gmail.com
Mon Oct 16 18:05:04 UTC 2023


On Thursday, 12 October 2023 at 21:20:44 UTC, Jonathan M Davis 
wrote:
> look like?
>
> Types can have static members.
>
> Basically what it comes down to is that outside of immutable 
> data, pure functions only have access to their arguments and to 
> what they can access via their arguments (be it by getting 
> pointers from those arguments or calling other pure functions 
> on them).
>
> - Jonathan M Davis

Can I say in the general sense that when the word static is used 
it means that something is defined/declared at compile time?



More information about the Digitalmars-d-learn mailing list