In a number of examples involving GTK (perhaps especially using GtkReactive) the code shows things like @Window or @Frame. Is the @ required or just used by the programmer to make some kind of differentiation?
It denotes a macro call. This is explained in the manual here:
Identifyers starting with @ are, as already mentioned, macro calls. Macros are somewhat complicated, a simple explanation would be to say tey are constructs that are (typically) prepended to some code snippet, and then perform some transformations on that code before it is run (they replace your code with something different). To know what kind of code you can supply to a specific macro and what it will do you have to read its documentation carefully ( for example, in a repl, type
julia>?@time to read the documentation for the
If you want to know exactly what a macro does to your code, try out the
Thanks to you both. I’ll study this.