-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Description
As I have been programming in Julia, I have run into a situation where I want to use a temporary (usually an array) for use every time a function, but don't want to allocate a new one every time. In C, this would be easily done using a static variable. In Julia, something similar could be accomplished using global variables, but if the type of the static variable depends on the type of the function arguments, this causes type instability.
So, the request is for static variables where each compiled method of the function has its own variable, whose type is determined by type inference.
cossio, wangg12, RaulDurand and inokawazu
Metadata
Metadata
Assignees
Labels
No labels