#Is Specializes annotation an analogue of a friend class in C++?

1 messages · Page 1 of 1 (latest)

obsidian sundial
#

What should I read to better understand the difference between Alternative and Specializes annotations?

long knollBOT
#

<@&987246399047479336> please have a look, thanks.

long knollBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If your code is long, or you have multiple files to share, consider posting it on sites like https://pastebin.com/ and share the link instead, that is easier to browse for helpers.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

burnt obsidian
#

@obsidian sundial what are those ? never heard of them in java

obsidian sundial
long knollBOT
#

Closed the thread due to inactivity.

If your question was not resolved yet, feel free to just post a message to reopen it, or create a new thread. But try to improve the quality of your question to make it easier to help you 👍

fresh abyss
#

Alternative annotations are used to specify alternative conditions for a func parameter or return value, such as whether it can be null, valid, or invalid for example you can use the annotation In_opt to see that a parameter is optional and can be null

Specializes annotations are used to specify specialized behavior for a func, such as whether it allocates or frees memory, or whether it is a system-internal function for example, you can use the annotation Ret_maybenull to see that a function may return a null pointer on failure

burnt obsidian
#

@obsidian sundial