jonathf / matlab2cpp

Convertion program from Matlab to C++ using Armadillo
BSD 3-Clause "New" or "Revised" License
181 stars 64 forks source link

another struct problem #135

Open jwmelto opened 6 years ago

jwmelto commented 6 years ago

Here is a minimal failing program:

function [zz] = foo( )

h.z = zeros(30,1);
z1 = zeros(30,1);

zz = z1(1:2);
%zz = h.z(1:2);

return

The commented line causes a crash:

ValueError('missing return in function Fget in file structs, Matlab: Crash with file: foo.m, on line: 7',)

but when commented out, it works just fine.

jonathf commented 6 years ago

I apologies, but this project is currently unmaintained. There will therefore not be any more bugfixes unless someone takes ownership. I've added a note to the frontpage now to make everyone aware.

jwmelto commented 6 years ago

Thanks for letting us know. I don't see the note...

jonathf commented 6 years ago

Sorry, thanks. Looks like it wasn't pushed through. Fixed it now.