[Zscript] Mod/File checking
Moderator: GZDoom Developers
-
- Posts: 4349
- Joined: Sun Feb 06, 2005 6:39 am
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Capital of Explodistan
Re: [Zscript] Mod/File checking
Oh I'm sure they do.. right now, but that doesn't feel like a smart system to begin with.
-
- Posts: 8193
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: [Zscript] Mod/File checking
Well, again, I can't be certain. I'm just guessing there.
Also, made a separate thread for general discussion and questions considering how off the rails I took this thread.
Also, made a separate thread for general discussion and questions considering how off the rails I took this thread.
-
- Lead GZDoom+Raze Developer
- Posts: 49142
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [Zscript] Mod/File checking
There's 4 types of constants:
ints, floats, strings and names.
Strings can be unambiguously recognized by double quotation marks.
Names can be unambiguously recognized by single quotation marks.
Floats get recognized by either being too large for integer storage or typical floating point signs in the literal, like a decimal point or an exponent
And in case you wonder what this part was inspired by, I'd say don't look further than the most popular scripting language right now: Lua. Of course Lua takes the 'the value determines the type' approach even further by applying it to everything.
ints, floats, strings and names.
Strings can be unambiguously recognized by double quotation marks.
Names can be unambiguously recognized by single quotation marks.
Floats get recognized by either being too large for integer storage or typical floating point signs in the literal, like a decimal point or an exponent
And in case you wonder what this part was inspired by, I'd say don't look further than the most popular scripting language right now: Lua. Of course Lua takes the 'the value determines the type' approach even further by applying it to everything.
-
- Posts: 8193
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: [Zscript] Mod/File checking
Alright. I've documented all that down on the wiki.
Now back to the suggestion at hand, how will the zscript control work?
Now back to the suggestion at hand, how will the zscript control work?
-
- Lead GZDoom+Raze Developer
- Posts: 49142
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [Zscript] Mod/File checking
Can we please get this stuff working first? Right now this thing is not even on my radar.
-
- Posts: 8193
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: [Zscript] Mod/File checking
My mistake. When you stated there's options, I had assumed there was already some form.
-
- Lead GZDoom+Raze Developer
- Posts: 49142
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [Zscript] Mod/File checking
It makes no sense to think about control stuff when I'm still in the initial stages of making the compiler work.
-
- Posts: 8193
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: [Zscript] Mod/File checking
I think now might be a good time to bring this up again.
Perhaps something similar to how C++ does (end)if's might work? By checking for a specific 'tag' or something inside the files and versioning like you mentioned, this could become extremely useful.
This would be better than just going on file names alone since those may be prone to change.
Perhaps something similar to how C++ does (end)if's might work? By checking for a specific 'tag' or something inside the files and versioning like you mentioned, this could become extremely useful.
This would be better than just going on file names alone since those may be prone to change.
-
- Lead GZDoom+Raze Developer
- Posts: 49142
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [Zscript] Mod/File checking
This one's already in the tracker.
-
- Posts: 13732
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
-
- Lead GZDoom+Raze Developer
- Posts: 49142
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [Zscript] Mod/File checking
Removed the 'closed' tag.