Ticket #31677

想定外の戻り値

Eröffnet am: 2013-07-07 23:56 Letztes Update: 2013-07-08 13:40

Auswertung:
Verantwortlicher:
(Keine)
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
Keine

Details

次のプログラムで1が表示される。想定ではCond1末尾のreturnでnullが戻るはず。確認したリビジョンはr478です。

def CondBase
	return 1
end

def Cond1
	if ! CondBase
		return
	end
	
	return
end

Print(Cond1)

Ticket-Verlauf (2/2 Historien)

2013-07-07 23:56 Aktualisiert von: darai
  • New Ticket "想定外の戻り値" created
2013-07-08 13:40 Aktualisiert von: panacoran
  • Komponente Update from (Keine) to trunk
  • Lösung Update from Keine to Gefixt
  • Status Update from Offen to Geschlossen
  • Ticket Close date is changed to 2013-07-08 13:40
  • Meilenstein Update from (Keine) to バージョン2.0
Kommentar

式のないreturnの返値にnullを設定していなかったため、直近のreturnの返値がそのまま返っていました。r482で直しました。

Dateianhangliste

Keine Anhänge

Bearbeiten

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Anmelden