Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Strange idea ranting (https://forums.graalonline.com/forums/showthread.php?t=74143)

Moondeath_2 05-23-2007 03:37 AM

Strange idea ranting
 
I just got to thinking again another idea of mine has came out and I've decided I should probably say something about this but it has to do with arrays, I don't think anyone has asked about this or I dunno if it's been even an idea yet but I think would what be useful as weird as this sounds a bit strange and I will probably post more of my ideas if I remember them and write them down; Well basically, i'd like to see something like

PHP Code:

for (tArtemp.Arr{"foo","bar"}) echo(tAr); 

be implimented as a way of getting rid of the need of making an array and possibly double arrays (by this I mean two different arrays like this in one array and i'm trying to think of another way to access it like this) in a for () any but basically it would work the same as a normal array it would echo like a normal array with this in a string

Quote:

Weapon/GUI-script TestArr added/updated by Moondeath_2
foo
bar
i'm still in the thought process with this any ideas or suggestions? And I am aware of this coming of strange I just had to finally get one of my unusual ideas off my head. =P

Matt 05-23-2007 03:41 AM

Not a bad idea. Needs more thought though. :)

Deadly_Killer 05-23-2007 03:49 AM

Do you mean something like:
PHP Code:

for (temp.var : {"One""Two""Three"}) echo(temp.var); 

?

Moondeath_2 05-23-2007 03:52 AM

Quote:

Originally Posted by Deadly_Killer (Post 1310940)
Do you mean something like:
PHP Code:

for (temp.var : {"One""Two""Three"}) echo(temp.var); 

?

I didn't quite think of that but that is a way of putting it yes, but that's still limiting it in a few ways that I can't really quite get out of my head, but what about of using two arrays in the same for object or more then two? x_x

Also, I'll post some more ideas once I remember them later but however; I did figure someone would catch onto that cause I thought that would work to but I still would like something like this.

Deadly_Killer 05-23-2007 03:57 AM

Quote:

Originally Posted by Moondeath_2 (Post 1310941)
I didn't quite think of that but that is a way of putting it yes, but that's still limiting it in a few ways that I can't really quite get out of my head, but what about of using two arrays in the same for object? x_x

works, as well.

Moondeath_2 05-23-2007 04:00 AM

Quote:

Originally Posted by Deadly_Killer (Post 1310943)
works, as well.

It does but I was already onto that before I tried that but something made me want this it was a better idea at the time to me.

I did that before when I posted this thread ^_^
Quote:

Weapon/GUI-script TestArr added/updated by Sorrento_Staff
foo
bar

Deadly_Killer 05-23-2007 04:06 AM

what are you asking, then?


All times are GMT +2. The time now is 07:42 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.