flat assembler
Message board for the users of flat assembler.

Index > Main > Namespaces in FASM

Author
Thread Post new topic Reply to topic
FrozenKnight



Joined: 24 Jun 2005
Posts: 128
FrozenKnight
I was wondering if it would be possible to allow namespaces in fasm. i keep running into the issue where i want to use a particular function or data name but i can't because i already used it. if i could specify a namespace then things would be easier.

something like
data::temp
or
code::temp

would be nice (kind of like how C++ handles it.)

if something like this is already implemented sorry, and could someone please explain how it works thanks.
Post 05 Aug 2007, 06:51
View user's profile Send private message Reply with quote
Niels



Joined: 17 Sep 2006
Posts: 255
Niels
I wouldn't advise it to anyone...

But...if you like it, you could make a DATA.ASM and a CODE.ASM, after you include the right file('namespace') you get the right pickup calling 'temp'...

Niels

ps.
If you want to type as less as possible than get used to it Smile
If you want clearity and readability and yet a short way:
Use e.g. 1a_temp and 1b_temp, when you're done with the textfile, use the texteditor and use the replace-function: 1a_ for CODE_ and 1b for DATA_
Post 05 Aug 2007, 08:18
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
you can use local labels for really "local" purpose.

Otherwise, I use "complete" name, like "mem.init", "app.init" etc...
Post 05 Aug 2007, 09:15
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
Octasm has namespaces, but since you didn't mention OS (and it only outputs pure binary), you may not want to use it (unless .EXE from scratch sounds like fun, heh). But it's a cool assembler too. Wink
Post 06 Aug 2007, 15:36
View user's profile Send private message Visit poster's website 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.