Closed ghost closed 3 years ago
You are right, load/require/import need better docs.
Meanwhile here are some tips: 😊
src/
and it should work.require
should be used most of the time because it caches the file and doesn't re-execute it. load
executed the file every time, which sometimes makes sense but rarely."mathutils" require import
Hope it helps!
You are right, load/require/import need better docs.
Meanwhile here are some tips: 😊
- The paths specified when using require/load are relative to the file where you are using require/load. In your case, remove
src/
and it should work.require
should be used most of the time because it caches the file and doesn't re-execute it.load
executed the file every time, which sometimes makes sense but rarely.- I am not a big fan of using invokes for referencing type classes in other files. Also you can't right now anyway! Try requiring your file containing type classes and then importing the module into the current scope:
"mathutils" require import
Hope it helps!
Yes, you helped a lot!! Thanks.... 👍 👍 Worked.
When i run
min src\base.min
command in terminal then i am receiving that error:I suggest you to make a doc for
module usage
orload
orrequire
orimport
. Because i am so stucked with them and i am stucking again when i use generics. Generics have some problems, i think. Because generic implementation in operator signatures doesn't accept special types where are defined in some other modules:Error says me that generic(
t
) has some undefined types.I need help!