-
-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the constructvariable!/variabletype functions (#1029)
* Add the constructvariable!/variabletype functions This allows extensions to use the @variable macro to create other types of variables * Add comments for @variable, constructvariable! and variabletype * Remove constructvariable! method for symbol * Stop using Core.Inference.return_type and add examples * Pass arguments as positional arguments in constructvariable! for speed * escape extra arguments passed to constructvariable! in @variable * Add missing variabletype * Support lb/ub/start depending on index for variabletype * Detect when sym is constant in getloopedtype * Make variabletype only depend on extra positional arguments * Fix addition of kwargs to constructvariable! * Add test for constructvariable! and variabletype * MyType -> MyVariable * Fix addkwargs! on v0.6
- Loading branch information
1 parent
66dd070
commit 7b5077d
Showing
2 changed files
with
139 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters