yakczh
V2EX  ›  Erlang

erl中怎么实现变量标志

  •  
  •   yakczh · Mar 18, 2013 · 6615 views
    This topic created in 4822 days ago, the information mentioned may be changed or developed.
    比如 
    global flag=0

    on data

    if (flag == 0) {
    print "first"; flag=1
    }else {
    print "after..."
    }


    这种代码在erl中怎么写?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   845 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 19:29 · PVG 03:29 · LAX 12:29 · JFK 15:29
    ♥ Do have faith in what you're doing.