flat assembler
Message board for the users of flat assembler.

Index > Main > Environment variables

Author
Thread Post new topic Reply to topic
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
Which notation is most preferable, why?
How to act with variable names that do not have values: should names be left or deleted, should there be "Empty absent vars" switch?
To my mind $var_name preferred to %var_name% and $(var_name).

edit: revolution, is not this an avatar(incarnation) of a person into your sight :?
Post 26 Jun 2010, 12:28
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17625
Location: In your JS exploiting you and your system
revolution
edemko: Are you asking about how fasm should work with environment variables when assembling, or for your own programs when running?

A signature is something you can choose to have on a post-by-post basis. An avatar would be something that you choose on a site-wide basis.
Post 26 Jun 2010, 12:40
View user's profile Send private message Visit poster's website Reply with quote
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
own
you might have heard my plans about a tool menu for fasmw
basic controls are:
-tool alias
-tool path
-tool working directory
-tool args
+edit button for every property and OK and SAVE buttos

an idea about vars is to extract file(being assembled) path/name/extension and propose them to user as variables
system variables must be recognized too
i would also wanted setting global-visible %FASMDIR% etc variable as %COMMANDER_PATH% e.g. from Total Commander so that another apps could access fasm-following tools
thus people asked
Post 26 Jun 2010, 14:54
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17625
Location: In your JS exploiting you and your system
revolution
In that case:

There is not really a "preferable" notation. It will likely depend upon other aspects as to how it fits with the rest of the syntax used in other parts of your code.

Also, dealing with missing or empty variables will be situation dependant. No single way will be right for all cases. And empty or missing %PATH% is usually perfectly acceptable. But an empty or missing %library% might be fatal.
Post 26 Jun 2010, 15:01
View user's profile Send private message Visit poster's website Reply with quote
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
Quote:

It will likely depend upon other aspects as to how it fits with the rest of the syntax used in other parts of your code

are you talking about TG's code planning and someone's insertions?
Post 26 Jun 2010, 15:12
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17625
Location: In your JS exploiting you and your system
revolution
edemko wrote:
are you talking about TG's code planning and someone's insertions?
I'm talking about any code where EV expansion is used.

If it is for, say, perl then %var% doesn't fit well within the language syntax. But if it is for a batch file then %var% seems a good fit.
Post 26 Jun 2010, 15:20
View user's profile Send private message Visit poster's website Reply with quote
edemko



Joined: 18 Jul 2009
Posts: 549
edemko
%% then?
Post 26 Jun 2010, 15:30
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.