yakczh
V2EX  ›  Erlang

erl中怎么实现变量标志

  •  
  •   yakczh · Mar 18, 2013 · 6794 views
    This topic created in 4909 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   ·   918 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 21:32 · PVG 05:32 · LAX 14:32 · JFK 17:32
    ♥ Do have faith in what you're doing.