[FreeVMS] FW: DCL

BERTRAND Joël joel.bertrand at systella.fr
Mon Jun 17 23:48:45 CEST 2013


Bill Pedersen a écrit :
> Renee:
>
> While it would be nice to think we as a team could support multiple
> languages right off the bat this is very unlikely.
>
> That said C and or C++ are going to have to be the primary
> implementation languages just because of their availability in general
> and the fact that many folks have them as a skill set.
>
> I am fully aware of your antithetical response to C based upon its
> origins (Unix) but it does not mean it cannot be used in a fashion which
> is consistent with the needs of the project. Just because you can
> terminate a string with a Null does not mean that is the best way to
> define strings for the OS’s usage – descriptors are probably more
> effective.  Likewise not allowing IO to go on unchecked – validating
> overflow conditions to prevent intrusions is very important.

	Null terminated string is only a way to implement string in C.
In FreeVMS, we have defined a string descriptor and all string 
manipulations use it:

struct vms$string
{
     vms$pointer             length;
     vms$pointer             length_trim;
     unsigned char           *c;
};

	JKB


More information about the FreeVMS mailing list