Showing the changes to src/core/chuck_lang.cpp (1 of 7 files). Show all
Unified · Split
| @@ -399,11 +399,11 @@ t_CKBOOL init_class_event( Chuck_Env * env, Chuck_Type * type ) · 398 unmodified lines | |||
| 399 | func->doc = "signal all shreds that are waiting on this event."; | 399 | func->doc = "signal all shreds that are waiting on this event."; |
| 400 | if( !type_engine_import_mfun( env, func ) ) goto error; | 400 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 401 | 401 | ||
| 402 | // add wait() | 402 | // add wait() | commented out 1.4.0.2 (ge) -- it doesn't DO anything!!! |
| 403 | func = make_new_mfun( "void", "wait", event_wait ); | 403 | // func = make_new_mfun( "void", "wait", event_wait ); |
| 404 | func->add_arg( "Shred", "me" ); | 404 | // func->add_arg( "Shred", "me" ); |
| 405 | func->doc = "(currently unsupported)"; | 405 | // func->doc = "(currently unsupported; use Event => now to wait on event)"; |
| 406 | if( !type_engine_import_mfun( env, func ) ) goto error; | 406 | // if( !type_engine_import_mfun( env, func ) ) goto error; |
| 407 | 407 | ||
| 408 | // add can_wait() | 408 | // add can_wait() |
| 409 | func = make_new_mfun( "int", "can_wait", event_can_wait ); | 409 | func = make_new_mfun( "int", "can_wait", event_can_wait ); |
| @@ -954,7 +954,7 @@ t_CKBOOL init_class_array( Chuck_Env * env, Chuck_Type * type ) · 544 unmodified lines | |||
| 954 | // --------- | 954 | // --------- |
| 955 | // add cap() | 955 | // add cap() |
| 956 | func = make_new_mfun( "int", "cap", array_get_capacity_hack ); | 956 | func = make_new_mfun( "int", "cap", array_get_capacity_hack ); |
| 957 | func->doc = "for historical/compatibilty reasons, this is the same as .size(); it is recommended to explicitly use .size() or .capacity()."; | 957 | func->doc = "(deprecated) For historical/compatibilty reasons, .cap() is always equal to .size(); instead of using .cap(), it is recommended to explicitly use .size() or .capacity()."; |
| 958 | if( !type_engine_import_mfun( env, func ) ) goto error; | 958 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 959 | 959 | ||
| 960 | // add capacity() // 1.4.0.2 | 960 | // add capacity() // 1.4.0.2 |