Revision history for KeyPgOpLetlist


Revision [22688]

Last edited on 2019-05-24 01:13:35 by fxm [Added the inheritance case (description + example)]
Additions:
{{fbdoc item="filename" value="examples/manual/operator/let-list2.bas"}}%%(freebasic)
Type Parent
Dim As Integer p1, p2
Type Child Extends Parent
Dim As Integer c1, c2
Type GrandChild Extends Child
Dim As Integer gc1, gc2
Dim As GrandChild gc = Type(1, 2, 3, 4, 5, 6)
Dim As Integer i1, i2
Dim As Integer j1, j2
Dim As Parent p
Dim As Child c
Let(c, i1, i2) = gc
Print c.p1, c.p2, c.c1, c.c2, i1, i2
Let(p, j1, j2) = gc
Print p.p1, p.p2, j1, j2
1 2 3 4 5 6
1 2 5 6


Revision [22687]

Edited on 2019-05-24 00:24:55 by fxm [Added in description the case of inheritance]
Additions:
When the ##//UDT//## ##[[KeyPgExtends|Extends]]## a Base, the first variable (##//variable1//##) assigned by the operator then corresponds to a Base instance (only the other variables are those to receive the values of the data fields of the ##//UDT//##).


Revision [22586]

Edited on 2019-02-26 09:10:49 by fxm [Suppressed reference to fbc version 0.90]
Additions:
**Let**( //variable1// [, //variable2// [, ... ]] ) => //UDT_var//
Deletions:
**Let**( //variable1// [, //variable2// [, ... ]] ) => //UDT_var// (from fbc version 0.90)


Revision [21042]

Edited on 2016-03-13 06:57:21 by fxm [Formatting]
Additions:


Revision [20392]

Edited on 2016-02-10 16:04:55 by DkLwikki [Update link format]
Additions:
- Only available in the //[[CompilerOptlang|-lang fb]]// dialect.
- ##[[KeyPgLet|Let]]##
- ##[[KeyPgOpLet|Operator Let (Assignment)]]##
Deletions:
- Only available in the //[[CompilerOptlang -lang fb]]// dialect.
- ##[[KeyPgLet Let]]##
- ##[[KeyPgOpLet Operator Let (Assignment)]]##


Revision [17848]

Edited on 2015-12-04 01:39:56 by FxMwikki [Union is not supported]
Additions:
Union is not supported.


Revision [17808]

Edited on 2015-09-29 15:18:24 by FxMwikki ['=>' is an alternative syntax for the assignment operator]
Additions:
##//or//##
**Let**( //variable1// [, //variable2// [, ... ]] ) => //UDT_var// (from fbc version 0.90)
- ##{{fbdoc item="keyword" value="KeyPgOpAssignment|Operator =[>] (Assignment)"}}##
Deletions:
- ##[[KeyPgOpAssignment Operator = (Assignment)]]##


Revision [14393]

Edited on 2009-08-29 21:55:33 by CountingPine [Remove CamelCase links in "New to FreeBASIC"]
Additions:
- New to ""FreeBASIC""
Deletions:
- New to FreeBASIC


Revision [12401]

The oldest known version of this page was created on 2008-01-18 14:21:41 by JeffMarshall [Remove CamelCase links in "New to FreeBASIC"]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode