yakczh
V2EX  ›  Erlang

erl中怎么实现变量标志

  •  
  •   yakczh · Mar 18, 2013 · 6657 views
    This topic created in 4847 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   ·   5165 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:45 · PVG 13:45 · LAX 22:45 · JFK 01:45
    ♥ Do have faith in what you're doing.