Functions


Closed Thread
Results 1 to 5 of 5

Thread: Functions

  1. #1
    AndyP's Avatar
    AndyP Guest

    Default Functions

    The ability to write functions that take variables as parameters and return variables back to the calling statement, similar to functions in VB and C.

  2. #2
    scorpion's Avatar
    scorpion Guest


    Did you find this post helpful? Yes | No

    Default

    that sounds like a common theme and i would have to agree with you.

  3. #3
    OXIMBIT's Avatar
    OXIMBIT Guest


    Did you find this post helpful? Yes | No

    Default

    In reality to write a compiler with Functions and Procedures makes it a different product. You lose all the flexibility you currently have. After a lot of thought on this subject I can only see the vars saved buy using a Local is worth all the effort converting your code. Even then it's not that often you run out of Ram. Code usage goes up a load when you start to shift data around just to use a Procedure, when a global is easier & quicker.

    C is a procedural language but you have to write a lot more code to do the simple stuff like LCDOUT Bin vara. I will admit the ease that you can write new reusable routines is nice though.

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Wink

    Hi,

    As PBP has open libraries, you can write and add quite all functions you want ... just have a look to see how Pbpicxx.lib is written.

    Need a little brainache from you, may be ...

    Alain

  5. #5
    Join Date
    May 2004
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    I2C Slave function ! Very usefull !

    Don Mario

Similar Threads

  1. Functions in Pic Basic Pro
    By bumlife in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 4th April 2007, 21:59
  2. Subs and functions
    By bearpawz in forum PBP Wish List
    Replies: 0
    Last Post: - 27th December 2006, 06:38
  3. functions
    By BigWumpus in forum PBP Wish List
    Replies: 1
    Last Post: - 13th June 2006, 17:05
  4. Replies: 2
    Last Post: - 13th December 2005, 00:11
  5. Hash functions
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 5th March 2005, 19:12

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts