any(3)

πŸ“¦
version 5.2.2 Β· 2 versions
, in fedora 43, fedora 44

✨ any(3) β€” the corba any type ✨

okay bestie, welcome to any(3) from the Erlang module definitions πŸ’– this is the little corner of orber that deals with the CORBA any type, and honestly? it's giving lowkey iconic. let's get into it 🫢


🌸 NAME 🌸

any β€” the corba any type. that's it, that's the whole vibe πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so like, this module contains functions that gives an interface to the CORBA any type. main character module energy fr fr ✨

heads up bestie: the any interface in orber does not contain a destroy function πŸ‘€ and that's not a bug, it's a feature β€” the any type is represented as an Erlang record, so it'll just get removed by the garbage collector when it's not in use anymore. the GC is doing the cleanup for you, slay πŸ—‘οΈπŸ’–

the type TC used below describes an IDL type, and it's a tuple according to the Erlang language mapping 🌈

the type Any used below is defined as:

-record(any, {typecode, value}).

where typecode is a TC tuple and value is an Erlang term of the type defined by the typecode field πŸŽ€


πŸ‘‘ EXPORTS πŸ‘‘

okay so here's where the actual functions live, no cap 🧚


🌟 create() -> Result / create(Typecode, Value) -> Result

Types:

Typecode = TC
Value = term()
Result = Any

the create/0 function creates an empty any record, and the create/2 function creates an initialized record ✨ pick your fighter, both are valid πŸ’…


🌟 set_typecode(A, Typecode) -> Result

Types:

A = Any
Typecode = TC
Result = Any

this function sets the typecode of A and returns a new any record πŸŽ€ note the "new" β€” it doesn't mutate, it hands you a fresh one, and that's the way that it should be fr fr 🌸


🌟 get_typecode(A) -> Result

Types:

A = Any
Result = TC

this function returns the typecode of A. simple, clean, obsessed πŸ¦‹


🌟 set_value(A, Value) -> Result

Types:

A = Any
Value = term()
Result = Any

this function sets the value of A and returns a new any record πŸ’– again with the new record, we love an immutable queen πŸ‘‘


🌟 get_value(A) -> Result

Types:

A = Any
Result = term()

this function returns the value of A. that's it bestie, go get your value 🌈


and that's the whole page, you ate it πŸ’…βœ¨

this lil' beauty is brought to you by Ericsson AB, running orber 5.2.2, and it's the any(3) page β€” so next time someone asks you about the CORBA any type, you're literally the expert now. periodt πŸŽ€πŸ’–πŸ¦‹

ily, go forth and slay your typecodes 🫢
πŸ“¦ where this page comes from