Changeset 673
- Timestamp:
- Apr 26, 2003, 11:35:06 AM (18 years ago)
- Location:
- to-imperative/trunk/samples/Convert
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
to-imperative/trunk/samples/Convert/Makefile
r671 r673 17 17 to_int_inval \ 18 18 to_int.bug1 \ 19 to_int.bug2 19 to_int.bug2 20 20 21 21 -
to-imperative/trunk/samples/Convert/to_int.bug2.cc
r671 r673 35 35 RF_TAILCALL (StdIO::PrintLN, (_v_constcharsConversion_sp_failed), ()); 36 36 } 37 LBranch2: {}38 37 error ("Unexpected fail"); 39 38 } 40 LBlock1: {}41 39 return true; 42 40 RF_END -
to-imperative/trunk/samples/Convert/to_int.cc
r651 r673 22 22 { 23 23 Expr _v_To_m_Int1; 24 if (RF_CALL (Convert::To_m_Int, (ShortInt::create_expr( 32) + ShortInt::create_expr(6)), (_v_To_m_Int1)))24 if (RF_CALL (Convert::To_m_Int, (ShortInt::create_expr(+32) + ShortInt::create_expr(6)), (_v_To_m_Int1))) 25 25 { 26 26 RF_CALL (StdIO::PrintLN, (_v_To_m_Int1), ()); -
to-imperative/trunk/samples/Convert/to_int_inval.cc
r626 r673 8 8 using namespace rfrt; 9 9 10 namespace to__int 10 namespace to__int__inval 11 11 { 12 12 … … 15 15 } 16 16 17 namespace to__int 17 namespace to__int__inval 18 18 { 19 19 … … 22 22 { 23 23 Expr _v_To_m_Int1; 24 if (RF_CALL (Convert::To_m_Int, (Char::create_expr("J ") + Char::create_expr("o") + Char::create_expr("h") + Char::create_expr("n")), (_v_To_m_Int1)))24 if (RF_CALL (Convert::To_m_Int, (Char::create_expr("John")), (_v_To_m_Int1))) 25 25 { 26 26 _v_res1 = empty; … … 30 30 } 31 31 LBranch1: {} 32 { 33 Expr _v_constwordfail ("fail"); 34 _v_res1 = empty; 35 RF_TAILCALL (StdIO::PrintLN, (_v_constwordfail), ()); 36 } 32 37 error ("Unexpected fail"); 33 38 } 34 LBlock1: {}35 39 return true; 36 40 RF_END … … 38 42 } 39 43 40 rfrt::Entry rf_entry (to__int ::Main);44 rfrt::Entry rf_entry (to__int__inval::Main); 41 45 42 46 } -
to-imperative/trunk/samples/Convert/to_int_inval.rf
r626 r673 3 3 4 4 Main = { <PrintLN <To-Int 'John'>>; 5 <PrintLN "fail">; 5 6 };
Note: See TracChangeset
for help on using the changeset viewer.