What are you talking about? How do they get modified with a copy of the original table? Assigning a table variable to another variable doesn't copy it.TimeLoop wrote:Copying tables still doesn't work.
The values of the original table get modified anyway.
Any other solution?
Search found 19 matches
- Fri Aug 09, 2013 12:16 pm
- Forum: Support and Development
- Topic: Two variables pointing to same mem location?
- Replies: 6
- Views: 2023
Re: Two variables pointing to same mem location?
- Thu Aug 08, 2013 8:51 pm
- Forum: Support and Development
- Topic: Two variables pointing to same mem location?
- Replies: 6
- Views: 2023
Re: Two variables pointing to same mem location?
As aforementioned, foo variable is a reference to the table, it doesn't hold the actual table. It is possible, though, to do what you want by creating a copy of the original table, although you have to copy field by field and save metatables yourself (I suppose there are some implementions on the in...
- Thu Aug 08, 2013 4:49 pm
- Forum: Support and Development
- Topic: Directory & Code Organisation
- Replies: 9
- Views: 6855
Re: Directory & Code Organisation
I always do it too, but I never get satisfied with a structure - it's always bad for me. Perhaps I just need to organise my work better.
- Thu Aug 08, 2013 12:13 pm
- Forum: Support and Development
- Topic: Directory & Code Organisation
- Replies: 9
- Views: 6855
Re: Directory & Code Organisation
I'm sorry for this big delay, I couldn't come before. Thanks for your time, I really appreciate it - though, I suppose having a complete game structure made for me won't solve my issue and when I come across another project, I'll end up with the same problem, I would like any of you, or anybody else...
- Mon Aug 05, 2013 4:30 pm
- Forum: Support and Development
- Topic: Directory & Code Organisation
- Replies: 9
- Views: 6855
Re: Directory & Code Organisation
I think.. I think my problem is not really about the coding style I use (I actually searched Google for days regarding coding styles, and I know how to properly design my code), but rather how I organise the code within files (both the contents place, variable naming, and how I separate the code bet...
- Sun Aug 04, 2013 10:54 pm
- Forum: Support and Development
- Topic: Directory & Code Organisation
- Replies: 9
- Views: 6855
Directory & Code Organisation
Hi there, I have been programming for about 3 years (Lua, C++ and a few others), and I feel this is a big problem to me. It has always been, to be honest, but when I was newbie this was not a problem, I mean, newbies don't care about that? (I was a 10-11 year old guy at that time, barely understood ...
- Fri Jun 07, 2013 8:53 pm
- Forum: General
- Topic: How did you find LÖVE?
- Replies: 60
- Views: 18615
Re: How did you find LÖVE?
Well, I heard about LÖVE from qaisjp ;) Back then, when Neo Playgrounds was alive, I joined it, even though I was a pure noob, qaisjp hated me (I still don't know why!), but with time he completely changed, and so did I. Years passed and we've grown up, but I still miss those old noob times. So, yea...
- Mon Apr 29, 2013 5:50 pm
- Forum: Libraries and Tools
- Topic: Löve Frames - A GUI Library
- Replies: 406
- Views: 354839
Re: Löve Frames - A GUI Library
You don't need a space in every single scope to be able to read the code, my code is perfectly readable without these spaces (the only down side is that I haven't commented it, but it's just for personal use anyway).
- Sun Apr 28, 2013 11:49 am
- Forum: Libraries and Tools
- Topic: Löve Frames - A GUI Library
- Replies: 406
- Views: 354839
Re: Löve Frames - A GUI Library
I was able to cut your code in half, you put too many spaces.