Comments (2)
it is required to be able to use the builtin
call()
proc on DM procs.
How do you figure?
As I understand, DM simply ignores the proc
keyword in this position, and it has no effect. For instance, var/mob/proc/foo = new()
infers /mob
as the type to be new'd.
The most basic correct way to type such variables is to give them no type: var/foo
. However because such references do in fact have variables you may benefit from an interface type like this to expose them: https://codedocs.tgstation13.org/procpath.html
from spacemandmm.
Thanks for the prompt response!
Hmm, I'm a bit confused - I distinctly remember some cases where the compiler screamed at me until I added /proc to the path for this usecase in the Urist SS13 codebase, but I couldn't reproduce it in my project.
I'll provisionally close this for now and reopen if I can get a solid example. Sorry for the hassle.
from spacemandmm.
Related Issues (20)
- environment parser fails silently on consts that conflict with builtins HOT 1
- Parser chokes on paths containing "operator" HOT 4
- dreamchecker doesn’t like vars called “final”
- The operator overload := is not accepted by the parser HOT 1
- "Failed to load" on every minimap subcommand; Several default passes not working well with /tg/ maps HOT 4
- "X sets SpacemanDMM_should_be_pure but calls a Y that does impure operations" happens when changing proc argument variables HOT 2
- Feature Request: A way to ignore the 'relatively pathed procs' lint
- Feature Request: Limit the usage of defines to specific variables HOT 1
- Union return types don't parse correctly HOT 2
- [Feature Request] SHOULD_NOT_SPAWN or similar
- Requesting a 1.9 suite release HOT 1
- Outline tree doesn't associate a variable with a class if multiple are present, or if just one is present HOT 2
- Various textDocument requests fail and kill the langserver client HOT 1
- Server crashing for whatever reason HOT 2
- return type `as list` and is being labeled as a bad return type HOT 6
- fexists() does not always work correctly HOT 3
- animate() missing `delay` (515) HOT 1
- Semicolons are being enforced in modified type expressions
- `bad input type: 'movable'` HOT 2
- Adds warning on `var/static` when it's declared with a proc in a proc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spacemandmm.