1. Convergence in Programming Languages

I'm sorry. See below

type enum with strings colors C_RED, C_YELLOW, C_BLUE, C_GREEN, C_BLACK, C_WHITE 
 
-- builtin function get_to_string_routine( sequence type_name ) 
color_names = get_to_string_routine( "colors" ) 
 
-- This outputs C_BLUE 
printf( 1, call_func( color_names, C_BLUE ) ) 
 
 
 
function big_function( sequence s, sequence t ) -- big routine 
     function little_macro()  
            s+=1 t=1 
            continue -- do we want this kind of thing?? 
     end function 
     . 
     . 
    while  condition1 do 
       if condition2 then 
             j = little_macro() 
       end if 
       . 
       . 
end function 

What do you think of this syntax?

Shawn Pringle

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu