Re: Begin...End; Begin...End.

new topic     » goto parent     » topic index » view thread      » older message » newer message

> You know, I think I'm gonna begin my programming lessons on Euphoria.
> I have only little problems,like how begins the main block of the program on
> this language (like begin end. and TP)? How begin the block of a function or
> a procedure?

the main program isn't defined as a block...  just put in code
anywhere except in procedures and functions and it'll execute it as
the main program...  procedures are defined as:

[global] procedure procedure_name([passed variables])
   .
   .
   .
end procedure

and functions are defined as:

[global] function function_name([passed variables])
  .
  .
  .
  return x
end function

hope that helps

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu