Re: Making a Part of code to be executed once



Hi,

"sravan_reddy001" <sravanganta2002@xxxxxxxxx> wrote in message
news:1182736895.520683.43830@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
this is what i want to do...
method()
{
--------
if(flag)
{
code; and flag=false
}
----
}

making this will execute the code only once and i'm never going to
change the flag to true(flag is boolean)

i can't use the init() method... the code is linked with the the
method's operation.
Is there any other method??


What is wrong with that?
If you are worried about performance, forget it. A simple if has no
repercusion overall.


.



Relevant Pages

  • Re: Making a Part of code to be executed once
    ... making this will execute the code only once and i'm never going to ... change the flag to true(flag is boolean) ... i can't use the init() method... ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Making a Part of code to be executed once
    ... making this will execute the code only once and i'm never going to ... change the flag to true(flag is boolean) ... i can't use the init() method... ...
    (microsoft.public.dotnet.languages.csharp)
  • I want increase the space of home folder - plz help me regarding this
    ... I want to increase the HDD space for /home ... No more tasks for init ... > try to execute ash instead of init ... Going to execute /sbin/init ...
    (RedHat)
  • Re: How to iterate through 80-100 procedures?
    ... programming wall that I don't quite know how to get past, ... inline asm code) and I need to be able to execute each test ... Each test is embedded in an object with an init ... demonstrates the use of these procedural types, ...
    (comp.lang.pascal.borland)
  • Re: which book to start with...?
    ... The CPU *would* execute it, ... find that Nasm puts its name in a .comment section...). ... but i dont understand how the previous test will set the sign flag. ... Not a bad idea - I find Nasm's version of the instruction set reference useful, even though it isn't up-to-date. ...
    (alt.lang.asm)