octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Welcome GSoC students!


From: c.
Subject: Re: Welcome GSoC students!
Date: Wed, 5 Jun 2013 06:54:10 +0200

On 5 Jun 2013, at 02:17, Marco Vassallo <address@hidden> wrote:

> Ok, I create a /devel directory and add the code
OK.

As for the code congratulattions these are already quite useful functions!

a few quick comments:

1: the name of the functions is completely misleading, 
it sounds like if they were for parsing generic xml files,
which is not the case. Also, msh has a "namespace" convention
to start all its functions by "msh".

2: please follow Octave code formatting guidelines:
http://www.gnu.org/software/octave/doc/interpreter/C_002b_002b-Sources.html#C_002b_002b-Sources

3: you should chech for errors in input data types with the "error_state" macro:

std::string mesh_to_read = args(0).string_value();
if (! error_state)
{
  // do stuff
}
return retva;

4: it would be helpful to add a makefile, you could grab an example from some 
ither package to start with

> Thanks
> Marco 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]